pub struct ReferenceWithTimezone {
pub instant: DateTime<Local>,
pub timezone_offset: Option<i32>,
}Expand description
Reference date/time with timezone information.
Relative expressions are resolved against this instant and optional timezone offset.
Fields§
§instant: DateTime<Local>The reference instant used as the base for relative parsing.
timezone_offset: Option<i32>Explicit timezone offset in minutes.
None means the system timezone of instant should be used.
Implementations§
Trait Implementations§
Source§impl Clone for ReferenceWithTimezone
impl Clone for ReferenceWithTimezone
Source§fn clone(&self) -> ReferenceWithTimezone
fn clone(&self) -> ReferenceWithTimezone
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 moreAuto Trait Implementations§
impl Freeze for ReferenceWithTimezone
impl RefUnwindSafe for ReferenceWithTimezone
impl Send for ReferenceWithTimezone
impl Sync for ReferenceWithTimezone
impl Unpin for ReferenceWithTimezone
impl UnsafeUnpin for ReferenceWithTimezone
impl UnwindSafe for ReferenceWithTimezone
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