#[non_exhaustive]pub struct TimeZoneEntry {
pub offset_seconds: i32,
pub valid_at_us: u64,
pub name: Option<String>,
}Expand description
One TimeZoneStruct entry for Node::set_time_zone.
#[non_exhaustive]: construct via TimeZoneEntry::new so future optional
spec fields can be added without a breaking change.
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_seconds: i32Offset from UTC in seconds (−43200..=50400).
valid_at_us: u64The UTCTime (epoch µs) at which this offset takes effect.
name: Option<String>Optional IANA time-zone name.
Implementations§
Trait Implementations§
Source§impl Clone for TimeZoneEntry
impl Clone for TimeZoneEntry
Source§fn clone(&self) -> TimeZoneEntry
fn clone(&self) -> TimeZoneEntry
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 TimeZoneEntry
impl Debug for TimeZoneEntry
impl Eq for TimeZoneEntry
Source§impl PartialEq for TimeZoneEntry
impl PartialEq for TimeZoneEntry
impl StructuralPartialEq for TimeZoneEntry
Auto Trait Implementations§
impl Freeze for TimeZoneEntry
impl RefUnwindSafe for TimeZoneEntry
impl Send for TimeZoneEntry
impl Sync for TimeZoneEntry
impl Unpin for TimeZoneEntry
impl UnsafeUnpin for TimeZoneEntry
impl UnwindSafe for TimeZoneEntry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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