pub enum DateTimeFormat {
DateTime,
DateTimeWithOffset,
HttpDate,
EpochSeconds,
}
Expand description
Formats for representing a DateTime
in the Smithy protocols.
Variants§
DateTime
RFC-3339 Date Time. If the date time has an offset, an error will be returned.
e.g. 2019-12-16T23:48:18Z
DateTimeWithOffset
RFC-3339 Date Time. Offsets are supported.
e.g. 2019-12-16T23:48:18+01:00
HttpDate
Date format used by the HTTP Date
header, specified in RFC-7231.
e.g. Mon, 16 Dec 2019 23:48:18 GMT
EpochSeconds
Number of seconds since the Unix epoch formatted as a floating point.
e.g. 1576540098.52
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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
)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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.