pub struct FluentEntry {
pub section: Arc<String>,
pub comments: String,
pub file: String,
pub id: String,
pub attribute: String,
pub message: String,
}Expand description
Represents one call to l10n! or similar macro in a Rust code file.
Use scrape_fluent_text to collect entries.
Fields§
§section: Arc<String>Resource file section, // l10n-## .
comments: StringComments in the line before the macro call or the same line that starts with l10n-# .
file: StringFile name.
id: StringMessage identifier.
attribute: StringAttribute name.
message: StringThe resource template/fallback.
Trait Implementations§
Source§impl Clone for FluentEntry
impl Clone for FluentEntry
Source§fn clone(&self) -> FluentEntry
fn clone(&self) -> FluentEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FluentEntry
impl Debug for FluentEntry
Source§impl PartialEq for FluentEntry
impl PartialEq for FluentEntry
impl Eq for FluentEntry
impl StructuralPartialEq for FluentEntry
Auto Trait Implementations§
impl Freeze for FluentEntry
impl RefUnwindSafe for FluentEntry
impl Send for FluentEntry
impl Sync for FluentEntry
impl Unpin for FluentEntry
impl UnwindSafe for FluentEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more