Struct pavex::time::format_description::well_known::Rfc3339
pub struct Rfc3339;
Expand description
The format described in RFC 3339.
Format example: 1985-04-12T23:20:50.52Z
§Examples
ⓘ
assert_eq!(
OffsetDateTime::parse("1985-04-12T23:20:50.52Z", &Rfc3339)?,
datetime!(1985-04-12 23:20:50.52 +00:00)
);
assert_eq!(
datetime!(1985-04-12 23:20:50.52 +00:00).format(&Rfc3339)?,
"1985-04-12T23:20:50.52Z"
);
Trait Implementations§
impl Copy for Rfc3339
impl Eq for Rfc3339
impl Formattable for Rfc3339
impl StructuralPartialEq for Rfc3339
Auto Trait Implementations§
impl Freeze for Rfc3339
impl RefUnwindSafe for Rfc3339
impl Send for Rfc3339
impl Sync for Rfc3339
impl Unpin for Rfc3339
impl UnwindSafe for Rfc3339
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.