Struct 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)
);
Runassert_eq!(
datetime!(1985-04-12 23:20:50.52 +00:00).format(&Rfc3339)?,
"1985-04-12T23:20:50.52Z"
);
RunTrait Implementations
impl Copy for Rfc3339
impl Eq for Rfc3339
impl Formattable 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more