pub enum DisplayTimezone {
Local,
Utc,
Fixed(FixedOffset),
}Expand description
Timezone used only when rendering human-readable output.
Variants§
Local
Use the operating system’s local timezone.
Utc
Render in UTC.
Fixed(FixedOffset)
Render using an explicit fixed offset from UTC.
Implementations§
Trait Implementations§
Source§impl Clone for DisplayTimezone
impl Clone for DisplayTimezone
Source§fn clone(&self) -> DisplayTimezone
fn clone(&self) -> DisplayTimezone
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 moreimpl Copy for DisplayTimezone
Source§impl Debug for DisplayTimezone
impl Debug for DisplayTimezone
Source§impl Default for DisplayTimezone
impl Default for DisplayTimezone
Source§fn default() -> DisplayTimezone
fn default() -> DisplayTimezone
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DisplayTimezone
impl<'de> Deserialize<'de> for DisplayTimezone
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 Display for DisplayTimezone
impl Display for DisplayTimezone
impl Eq for DisplayTimezone
Source§impl FromStr for DisplayTimezone
impl FromStr for DisplayTimezone
Source§impl PartialEq for DisplayTimezone
impl PartialEq for DisplayTimezone
Source§impl Serialize for DisplayTimezone
impl Serialize for DisplayTimezone
impl StructuralPartialEq for DisplayTimezone
Auto Trait Implementations§
impl Freeze for DisplayTimezone
impl RefUnwindSafe for DisplayTimezone
impl Send for DisplayTimezone
impl Sync for DisplayTimezone
impl Unpin for DisplayTimezone
impl UnsafeUnpin for DisplayTimezone
impl UnwindSafe for DisplayTimezone
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more