Struct wmi::datetime::WMIDateTime
source · pub struct WMIDateTime(pub DateTime<FixedOffset>);
Expand description
A wrapper type around chrono
’s DateTime
(if the chrono
feature is active. ), which supports parsing from WMI-format strings.
Tuple Fields§
§0: DateTime<FixedOffset>
Trait Implementations§
source§impl Clone for WMIDateTime
impl Clone for WMIDateTime
source§fn clone(&self) -> WMIDateTime
fn clone(&self) -> WMIDateTime
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 WMIDateTime
impl Debug for WMIDateTime
source§impl<'de> Deserialize<'de> for WMIDateTime
impl<'de> Deserialize<'de> for WMIDateTime
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for WMIDateTime
impl FromStr for WMIDateTime
source§impl Hash for WMIDateTime
impl Hash for WMIDateTime
source§impl Ord for WMIDateTime
impl Ord for WMIDateTime
source§fn cmp(&self, other: &WMIDateTime) -> Ordering
fn cmp(&self, other: &WMIDateTime) -> 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 WMIDateTime
impl PartialEq for WMIDateTime
source§fn eq(&self, other: &WMIDateTime) -> bool
fn eq(&self, other: &WMIDateTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WMIDateTime
impl PartialOrd for WMIDateTime
source§fn partial_cmp(&self, other: &WMIDateTime) -> Option<Ordering>
fn partial_cmp(&self, other: &WMIDateTime) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for WMIDateTime
impl Serialize for WMIDateTime
impl Copy for WMIDateTime
impl Eq for WMIDateTime
impl StructuralPartialEq for WMIDateTime
Auto Trait Implementations§
impl RefUnwindSafe for WMIDateTime
impl Send for WMIDateTime
impl Sync for WMIDateTime
impl Unpin for WMIDateTime
impl UnwindSafe for WMIDateTime
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