pub struct TimezoneDisplay {
pub utc_offset: i32,
pub name: String,
pub in_daylight_saving_time: bool,
}
Expand description
Information useful for displaying the timezone of a specific datetime
.
This information may vary within a single timezone
to reflect daylight
saving time adjustments.
Fields§
§utc_offset: i32
The number of seconds difference between UTC time and the local time of the timezone.
The returned value will always be less than 86400 which is the number of seconds in a day (246060).
In implementations that do not expose an actual time zone, this should return 0.
name: String
The abbreviated name of the timezone to display to a user. The name
UTC
indicates Coordinated Universal Time. Otherwise, this should
reference local standards for the name of the time zone.
In implementations that do not expose an actual time zone, this
should be the string UTC
.
In time zones that do not have an applicable name, a formatted
representation of the UTC offset may be returned, such as -04:00
.
in_daylight_saving_time: bool
Whether daylight saving time is active.
In implementations that do not expose an actual time zone, this should return false.
Trait Implementations§
source§impl Clone for TimezoneDisplay
impl Clone for TimezoneDisplay
source§fn clone(&self) -> TimezoneDisplay
fn clone(&self) -> TimezoneDisplay
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimezoneDisplay
impl Debug for TimezoneDisplay
impl ComponentType for TimezoneDisplay
impl Lift for TimezoneDisplay
impl Lower for TimezoneDisplay
Auto Trait Implementations§
impl Freeze for TimezoneDisplay
impl RefUnwindSafe for TimezoneDisplay
impl Send for TimezoneDisplay
impl Sync for TimezoneDisplay
impl Unpin for TimezoneDisplay
impl UnwindSafe for TimezoneDisplay
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self
file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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