#[non_exhaustive]pub struct Description {
pub text: String,
pub locale: Locale,
pub fallback: bool,
}Expand description
A description text resolved for a requested locale.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: StringThe description text.
locale: LocaleThe locale the text is written in — the requested locale, or the primary locale when the request fell back.
fallback: boolWhether the requested locale had no text and the primary locale’s text was returned instead.
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§impl Debug for Description
impl Debug for Description
impl Eq for Description
Source§impl PartialEq for Description
impl PartialEq for Description
impl StructuralPartialEq for Description
Auto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnsafeUnpin for Description
impl UnwindSafe for Description
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