pub struct LanguageCode {
pub bcp47: String,
pub iso639_3: String,
pub display: String,
}Expand description
A language code entry with BCP-47, ISO 639-3, and display name.
Fields§
§bcp47: StringBCP-47 language tag (e.g. "en-US").
iso639_3: StringISO 639-3 language code (e.g. "eng").
display: StringHuman-readable language name (e.g. "English (United States)").
Trait Implementations§
Source§impl Clone for LanguageCode
impl Clone for LanguageCode
Source§fn clone(&self) -> LanguageCode
fn clone(&self) -> LanguageCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LanguageCode
impl Debug for LanguageCode
impl Eq for LanguageCode
Source§impl PartialEq for LanguageCode
impl PartialEq for LanguageCode
Source§fn eq(&self, other: &LanguageCode) -> bool
fn eq(&self, other: &LanguageCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LanguageCode
Auto Trait Implementations§
impl Freeze for LanguageCode
impl RefUnwindSafe for LanguageCode
impl Send for LanguageCode
impl Sync for LanguageCode
impl Unpin for LanguageCode
impl UnsafeUnpin for LanguageCode
impl UnwindSafe for LanguageCode
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