pub struct ConvertedDatetime {
pub utc: String,
pub local: String,
pub timezone: String,
pub utc_offset: String,
pub dst_active: bool,
}Expand description
The result of converting a datetime to a target timezone.
Fields§
§utc: StringThe instant in UTC (RFC 3339).
local: StringThe instant in the target timezone (RFC 3339 with offset).
timezone: StringThe IANA timezone name used.
utc_offset: StringThe UTC offset at this instant (e.g., “-05:00”).
dst_active: boolWhether Daylight Saving Time is active at this instant.
Trait Implementations§
Source§impl Clone for ConvertedDatetime
impl Clone for ConvertedDatetime
Source§fn clone(&self) -> ConvertedDatetime
fn clone(&self) -> ConvertedDatetime
Returns a duplicate of the value. Read more
1.0.0 · 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 ConvertedDatetime
impl Debug for ConvertedDatetime
Auto Trait Implementations§
impl Freeze for ConvertedDatetime
impl RefUnwindSafe for ConvertedDatetime
impl Send for ConvertedDatetime
impl Sync for ConvertedDatetime
impl Unpin for ConvertedDatetime
impl UnsafeUnpin for ConvertedDatetime
impl UnwindSafe for ConvertedDatetime
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