#[non_exhaustive]pub struct TimeZone {
pub iana: Option<String>,
pub windows: Option<String>,
pub utc_offset_seconds: i32,
pub abbreviation: Option<String>,
}Expand description
The time zone: its name and the offset now.
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.iana: Option<String>“Europe/London”.
windows: Option<String>“GMT Standard Time”.
utc_offset_seconds: i32East of UTC, now, including daylight saving.
abbreviation: Option<String>“BST”.
Trait Implementations§
impl Eq for TimeZone
impl StructuralPartialEq for TimeZone
Auto Trait Implementations§
impl Forget for TimeZone
impl Freeze for TimeZone
impl Move for TimeZone
impl RefUnwindSafe for TimeZone
impl Send for TimeZone
impl Sync for TimeZone
impl Unpin for TimeZone
impl UnsafeUnpin for TimeZone
impl UnwindSafe for TimeZone
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