Struct NetworkTimezone
#[non_exhaustive]pub struct NetworkTimezone {
pub offset: Option<i32>,
pub dst_offset: Option<i32>,
pub leap_seconds: Option<i32>,
}Expand description
The timezone that the network reports.
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.offset: Option<i32>The offset from UTC in minutes, including DST.
dst_offset: Option<i32>The part of the offset that comes from DST.
leap_seconds: Option<i32>The leap seconds in the network time.
Trait Implementations§
§impl Clone for NetworkTimezone
impl Clone for NetworkTimezone
§fn clone(&self) -> NetworkTimezone
fn clone(&self) -> NetworkTimezone
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 more§impl Debug for NetworkTimezone
impl Debug for NetworkTimezone
§impl Default for NetworkTimezone
impl Default for NetworkTimezone
§fn default() -> NetworkTimezone
fn default() -> NetworkTimezone
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for NetworkTimezone
impl<'de> Deserialize<'de> for NetworkTimezone
§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
impl Eq for NetworkTimezone
§impl From<NetworkTimezone> for Value<'static>
impl From<NetworkTimezone> for Value<'static>
§fn from(s: NetworkTimezone) -> Self
fn from(s: NetworkTimezone) -> Self
Converts to this type from the input type.
§impl PartialEq for NetworkTimezone
impl PartialEq for NetworkTimezone
§impl Serialize for NetworkTimezone
impl Serialize for NetworkTimezone
impl StructuralPartialEq for NetworkTimezone
§impl TryFrom<NetworkTimezone> for OwnedValue
impl TryFrom<NetworkTimezone> for OwnedValue
§fn try_from(s: NetworkTimezone) -> Result<Self>
fn try_from(s: NetworkTimezone) -> Result<Self>
Performs the conversion.
§impl TryFrom<OwnedValue> for NetworkTimezone
impl TryFrom<OwnedValue> for NetworkTimezone
§impl TryFrom<Value<'static>> for NetworkTimezone
impl TryFrom<Value<'static>> for NetworkTimezone
§impl Type for NetworkTimezone
impl Type for NetworkTimezone
Auto Trait Implementations§
impl Freeze for NetworkTimezone
impl RefUnwindSafe for NetworkTimezone
impl Send for NetworkTimezone
impl Sync for NetworkTimezone
impl Unpin for NetworkTimezone
impl UnsafeUnpin for NetworkTimezone
impl UnwindSafe for NetworkTimezone
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>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.