#[non_exhaustive]pub struct DstOffsetEntry {
pub offset_seconds: i32,
pub valid_starting_us: u64,
pub valid_until_us: Option<u64>,
}Expand description
One DSTOffsetStruct entry for Node::set_dst_offset.
#[non_exhaustive]: construct via DstOffsetEntry::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: i32DST offset in seconds added to the standard offset.
valid_starting_us: u64The UTCTime (epoch µs) at which this DST offset starts.
valid_until_us: Option<u64>The UTCTime (epoch µs) at which it stops, or None for indefinite.
Implementations§
Trait Implementations§
Source§impl Clone for DstOffsetEntry
impl Clone for DstOffsetEntry
Source§fn clone(&self) -> DstOffsetEntry
fn clone(&self) -> DstOffsetEntry
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 DstOffsetEntry
impl Debug for DstOffsetEntry
impl Eq for DstOffsetEntry
Source§impl PartialEq for DstOffsetEntry
impl PartialEq for DstOffsetEntry
impl StructuralPartialEq for DstOffsetEntry
Auto Trait Implementations§
impl Freeze for DstOffsetEntry
impl RefUnwindSafe for DstOffsetEntry
impl Send for DstOffsetEntry
impl Sync for DstOffsetEntry
impl Unpin for DstOffsetEntry
impl UnsafeUnpin for DstOffsetEntry
impl UnwindSafe for DstOffsetEntry
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