Struct actix_web::cookie::time::format_description::well_known::Rfc2822
source · pub struct Rfc2822;
Expand description
The format described in RFC 2822.
Example: Fri, 21 Nov 1997 09:55:06 -0600
§Examples
use time_macros::datetime;
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§
source§impl PartialEq for Rfc2822
impl PartialEq for Rfc2822
impl Copy for Rfc2822
impl Eq for Rfc2822
impl Formattable for Rfc2822
impl Parsable for Rfc2822
impl StructuralPartialEq for Rfc2822
Auto Trait Implementations§
impl Freeze for Rfc2822
impl RefUnwindSafe for Rfc2822
impl Send for Rfc2822
impl Sync for Rfc2822
impl Unpin for Rfc2822
impl UnwindSafe for Rfc2822
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.