#[non_exhaustive]pub struct LocalizedText {
pub text: String,
pub language_code: String,
/* private fields */
}Expand description
Localized variant of a text in a particular language.
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: StringLocalized string in the language corresponding to `language_code’ below.
language_code: StringThe text’s BCP-47 language code, such as “en-US” or “sr-Latn”.
For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Implementations§
Source§impl LocalizedText
impl LocalizedText
Trait Implementations§
Source§impl Clone for LocalizedText
impl Clone for LocalizedText
Source§fn clone(&self) -> LocalizedText
fn clone(&self) -> LocalizedText
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 LocalizedText
impl Debug for LocalizedText
Source§impl Default for LocalizedText
impl Default for LocalizedText
Source§fn default() -> LocalizedText
fn default() -> LocalizedText
Returns the “default value” for a type. Read more
Source§impl Message for LocalizedText
impl Message for LocalizedText
Source§impl PartialEq for LocalizedText
impl PartialEq for LocalizedText
impl StructuralPartialEq for LocalizedText
Auto Trait Implementations§
impl Freeze for LocalizedText
impl RefUnwindSafe for LocalizedText
impl Send for LocalizedText
impl Sync for LocalizedText
impl Unpin for LocalizedText
impl UnwindSafe for LocalizedText
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