pub enum AcceptDatetimeFormat {
Unix,
Rfc3339,
}Expand description
Wire format for datetime fields, selected via the Accept-Datetime-Format
request header.
Variants§
Unix
UNIX epoch seconds with fractional part, e.g. 1718366492.000000.
Rfc3339
RFC 3339 / ISO 8601, e.g. 2024-06-14T12:01:32.000000Z. The default.
Implementations§
Source§impl AcceptDatetimeFormat
impl AcceptDatetimeFormat
Sourcepub fn as_header_value(self) -> &'static str
pub fn as_header_value(self) -> &'static str
The value sent in the Accept-Datetime-Format header.
Trait Implementations§
Source§impl Clone for AcceptDatetimeFormat
impl Clone for AcceptDatetimeFormat
Source§fn clone(&self) -> AcceptDatetimeFormat
fn clone(&self) -> AcceptDatetimeFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AcceptDatetimeFormat
Source§impl Debug for AcceptDatetimeFormat
impl Debug for AcceptDatetimeFormat
Source§impl Default for AcceptDatetimeFormat
impl Default for AcceptDatetimeFormat
Source§fn default() -> AcceptDatetimeFormat
fn default() -> AcceptDatetimeFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AcceptDatetimeFormat
impl<'de> Deserialize<'de> for AcceptDatetimeFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AcceptDatetimeFormat
Source§impl Hash for AcceptDatetimeFormat
impl Hash for AcceptDatetimeFormat
Source§impl PartialEq for AcceptDatetimeFormat
impl PartialEq for AcceptDatetimeFormat
Source§impl Serialize for AcceptDatetimeFormat
impl Serialize for AcceptDatetimeFormat
impl StructuralPartialEq for AcceptDatetimeFormat
Auto Trait Implementations§
impl Freeze for AcceptDatetimeFormat
impl RefUnwindSafe for AcceptDatetimeFormat
impl Send for AcceptDatetimeFormat
impl Sync for AcceptDatetimeFormat
impl Unpin for AcceptDatetimeFormat
impl UnsafeUnpin for AcceptDatetimeFormat
impl UnwindSafe for AcceptDatetimeFormat
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.