pub struct OffsetDateTime {
pub date: Date,
pub time: Time,
pub offset: Offset,
}Fields§
§date: Date§time: Time§offset: OffsetTrait Implementations§
Source§impl Clone for OffsetDateTime
impl Clone for OffsetDateTime
Source§fn clone(&self) -> OffsetDateTime
fn clone(&self) -> OffsetDateTime
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OffsetDateTime
impl Debug for OffsetDateTime
Source§impl Default for OffsetDateTime
impl Default for OffsetDateTime
Source§impl Display for OffsetDateTime
impl Display for OffsetDateTime
Source§impl From<OffsetDateTime> for Datetime
impl From<OffsetDateTime> for Datetime
Source§fn from(value: OffsetDateTime) -> Self
fn from(value: OffsetDateTime) -> Self
Converts to this type from the input type.
Source§impl Ord for OffsetDateTime
impl Ord for OffsetDateTime
Source§fn cmp(&self, other: &OffsetDateTime) -> Ordering
fn cmp(&self, other: &OffsetDateTime) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OffsetDateTime
impl PartialEq for OffsetDateTime
Source§impl PartialOrd for OffsetDateTime
impl PartialOrd for OffsetDateTime
impl Copy for OffsetDateTime
impl Eq for OffsetDateTime
impl StructuralPartialEq for OffsetDateTime
Auto Trait Implementations§
impl Freeze for OffsetDateTime
impl RefUnwindSafe for OffsetDateTime
impl Send for OffsetDateTime
impl Sync for OffsetDateTime
impl Unpin for OffsetDateTime
impl UnwindSafe for OffsetDateTime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.