Struct actix_web::cookie::time::format_description::well_known::Rfc2822
source · [−]pub struct Rfc2822;
This is supported on crate feature
cookies
only.Expand description
The format described in RFC 2822.
Example: Fri, 21 Nov 1997 09:55:06 -0600
Examples
assert_eq!(
OffsetDateTime::parse("Sat, 12 Jun 1993 13:25:19 GMT", &Rfc2822)?,
datetime!(1993-06-12 13:25:19 +00:00)
);
assert_eq!(
datetime!(1997-11-21 09:55:06 -06:00).format(&Rfc2822)?,
"Fri, 21 Nov 1997 09:55:06 -0600"
);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rfc2822
impl UnwindSafe for Rfc2822
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more