pub struct LocaleOption {
pub code: String,
pub label: String,
}Expand description
One selectable locale from the build’s embedded locales.toml registry.
Fields§
§code: String§label: StringTrait Implementations§
Source§impl Clone for LocaleOption
impl Clone for LocaleOption
Source§fn clone(&self) -> LocaleOption
fn clone(&self) -> LocaleOption
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 LocaleOption
impl Debug for LocaleOption
Source§impl<'de> Deserialize<'de> for LocaleOption
impl<'de> Deserialize<'de> for LocaleOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LocaleOption
impl RefUnwindSafe for LocaleOption
impl Send for LocaleOption
impl Sync for LocaleOption
impl Unpin for LocaleOption
impl UnsafeUnpin for LocaleOption
impl UnwindSafe for LocaleOption
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