#[non_exhaustive]pub struct TimeFormatPreference {
pub time_format: String,
}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.time_format: String“twelve_hour” or “twenty_four_hour”, as GetIdentity serves it.
Trait Implementations§
Source§impl Clone for TimeFormatPreference
impl Clone for TimeFormatPreference
Source§fn clone(&self) -> TimeFormatPreference
fn clone(&self) -> TimeFormatPreference
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 TimeFormatPreference
impl Debug for TimeFormatPreference
Source§impl Default for TimeFormatPreference
impl Default for TimeFormatPreference
Source§fn default() -> TimeFormatPreference
fn default() -> TimeFormatPreference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeFormatPreference
impl<'de> Deserialize<'de> for TimeFormatPreference
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 PartialEq for TimeFormatPreference
impl PartialEq for TimeFormatPreference
Source§impl Serialize for TimeFormatPreference
impl Serialize for TimeFormatPreference
impl StructuralPartialEq for TimeFormatPreference
Auto Trait Implementations§
impl Freeze for TimeFormatPreference
impl RefUnwindSafe for TimeFormatPreference
impl Send for TimeFormatPreference
impl Sync for TimeFormatPreference
impl Unpin for TimeFormatPreference
impl UnsafeUnpin for TimeFormatPreference
impl UnwindSafe for TimeFormatPreference
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