#[non_exhaustive]pub enum AcceptDatetimeFormat {
Unix,
Rfc3339,
Unknown(String),
}Expand description
DateTime header
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unix
If “UNIX” is specified DateTime fields will be specified or returned in the “12345678.000000123” format.
Rfc3339
If “RFC3339” is specified DateTime will be specified or returned in “YYYY-MM-DDTHH:MM:SS.nnnnnnnnnZ” format.
Unknown(String)
An unrecognized provider value, preserved for forward compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for AcceptDatetimeFormat
impl Clone for AcceptDatetimeFormat
Source§impl Debug for AcceptDatetimeFormat
impl Debug for AcceptDatetimeFormat
Source§impl<'de> Deserialize<'de> for AcceptDatetimeFormat
impl<'de> Deserialize<'de> for AcceptDatetimeFormat
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
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