pub struct Language {
pub iso639_1: Option<&'static str>,
pub iso639_2: Option<&'static str>,
pub name: Option<&'static str>,
pub native_name: Option<&'static str>,
}
Expand description
Represents a Language with both ISO 639-1 and ISO 639-2 codes.
Fields§
§iso639_1: Option<&'static str>
ISO 639-1 language code
iso639_2: Option<&'static str>
ISO 639-2 language code
name: Option<&'static str>
Name of the language in english
native_name: Option<&'static str>
Native name of the language, can be in the native language
Trait Implementations§
impl Copy for Language
impl Eq for Language
impl StructuralPartialEq for Language
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
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