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: String
Comments in the line before the macro call or the same line that starts with l10n-#
.
file: String
File name.
id: String
Message identifier.
attribute: String
Attribute name.
message: String
The 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 copy 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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