pub struct DateTime(pub OffsetDateTime);Expand description
A date and time with second precision.
Tuple Fields§
§0: OffsetDateTimeTrait Implementations§
Source§impl<'de> Deserialize<'de> for DateTime
impl<'de> Deserialize<'de> for DateTime
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
impl Eq for DateTime
impl StructuralPartialEq for DateTime
Source§impl XmlSerialize for DateTime
impl XmlSerialize for DateTime
Source§fn serialize_child_nodes<W>(&self, writer: &mut Writer<W>) -> Result<(), Error>where
W: Write,
fn serialize_child_nodes<W>(&self, writer: &mut Writer<W>) -> Result<(), Error>where
W: Write,
Serializes a DateTime as an XML text content node by formatting the
inner time::OffsetDateTime as an ISO 8601-compliant string.
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnsafeUnpin for DateTime
impl UnwindSafe for DateTime
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