pub enum DateTimeCs {
Local(OffsetDateTime),
Unspecified(PrimitiveDateTime),
Utc(OffsetDateTime),
}
Variants§
Implementations§
Source§impl DateTimeCs
impl DateTimeCs
pub fn from_binary(date_time_data: i64) -> Result<Self, ParseError>
pub fn to_binary(&self) -> Result<i64, OutOfRangeError>
Trait Implementations§
Source§impl Clone for DateTimeCs
impl Clone for DateTimeCs
Source§fn clone(&self) -> DateTimeCs
fn clone(&self) -> DateTimeCs
Returns a copy 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 DateTimeCs
impl Debug for DateTimeCs
Source§impl From<OffsetDateTime> for DateTimeCs
impl From<OffsetDateTime> for DateTimeCs
Source§fn from(value: OffsetDateTime) -> Self
fn from(value: OffsetDateTime) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveDateTime> for DateTimeCs
impl From<PrimitiveDateTime> for DateTimeCs
Source§fn from(value: PrimitiveDateTime) -> Self
fn from(value: PrimitiveDateTime) -> Self
Converts to this type from the input type.
Source§impl Hash for DateTimeCs
impl Hash for DateTimeCs
Source§impl Ord for DateTimeCs
impl Ord for DateTimeCs
Source§fn cmp(&self, other: &DateTimeCs) -> Ordering
fn cmp(&self, other: &DateTimeCs) -> 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 DateTimeCs
impl PartialEq for DateTimeCs
Source§impl PartialOrd for DateTimeCs
impl PartialOrd for DateTimeCs
impl Copy for DateTimeCs
impl Eq for DateTimeCs
impl StructuralPartialEq for DateTimeCs
Auto Trait Implementations§
impl Freeze for DateTimeCs
impl RefUnwindSafe for DateTimeCs
impl Send for DateTimeCs
impl Sync for DateTimeCs
impl Unpin for DateTimeCs
impl UnwindSafe for DateTimeCs
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