#[non_exhaustive]pub struct Date(/* private fields */);Expand description
RFC 3339 date-time string with any timezone offset (RFC 8620 §1.4).
Format: YYYY-MM-DDTHH:MM:SS±HH:MM or Z suffix — any valid RFC 3339 offset,
letters uppercase, fractional seconds omitted if zero.
Example: "2014-10-30T14:12:00+08:00".
Distinct from UTCDate, which requires the time-offset to be Z.
Use Date for fields derived from RFC 5322 email headers (e.g. sentAt),
which commonly carry non-UTC offsets.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Date
impl<'de> Deserialize<'de> for Date
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 Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnsafeUnpin for Date
impl UnwindSafe for Date
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