pub struct UserLocale {
pub country: Option<String>,
pub language: Option<String>,
pub variant: Option<String>,
}Expand description
This user’s locale
This type is not used in any activity, and only used as part of another schema.
Fields§
§country: Option<String>The country this blog’s locale is set to.
language: Option<String>The language this blog is authored in.
variant: Option<String>The language variant this blog is authored in.
Trait Implementations§
Source§impl Clone for UserLocale
impl Clone for UserLocale
Source§fn clone(&self) -> UserLocale
fn clone(&self) -> UserLocale
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 UserLocale
impl Debug for UserLocale
Source§impl Default for UserLocale
impl Default for UserLocale
Source§fn default() -> UserLocale
fn default() -> UserLocale
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserLocale
impl<'de> Deserialize<'de> for UserLocale
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
Source§impl Serialize for UserLocale
impl Serialize for UserLocale
impl NestedType for UserLocale
impl Part for UserLocale
Auto Trait Implementations§
impl Freeze for UserLocale
impl RefUnwindSafe for UserLocale
impl Send for UserLocale
impl Sync for UserLocale
impl Unpin for UserLocale
impl UnwindSafe for UserLocale
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