Struct actix_web::cookie::time::format_description::well_known::Rfc3339
source · 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§
source§impl PartialEq<Rfc3339> for Rfc3339
impl PartialEq<Rfc3339> for Rfc3339
impl Copy for Rfc3339
impl Eq for Rfc3339
impl Formattable for Rfc3339
impl Parsable for Rfc3339
impl StructuralEq for Rfc3339
impl StructuralPartialEq for Rfc3339
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.