pub enum DateTimeFormat {
Rfc3339,
UnixSeconds,
UnixMilliseconds,
UnixMicroseconds,
UnixNanoseconds,
}Expand description
The format to use for date-time types.
Variants§
Rfc3339
RFC 3339 (ISO 8601) format, using chrono::DateTime<Utc>.
This is how OpenAPI 3.0 represents date-time types.
UnixSeconds
Unix timestamps in seconds, using ploidy_util::UnixSeconds.
This is also the representation for the unix-time type.
UnixMilliseconds
Unix timestamps in milliseconds, using ploidy_util::UnixMilliseconds.
UnixMicroseconds
Unix timestamps in microseconds, using ploidy_util::UnixMicroseconds.
UnixNanoseconds
Unix timestamps in nanoseconds, using ploidy_util::UnixNanoseconds.
Trait Implementations§
Source§impl Clone for DateTimeFormat
impl Clone for DateTimeFormat
Source§fn clone(&self) -> DateTimeFormat
fn clone(&self) -> DateTimeFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DateTimeFormat
impl Debug for DateTimeFormat
Source§impl Default for DateTimeFormat
impl Default for DateTimeFormat
Source§fn default() -> DateTimeFormat
fn default() -> DateTimeFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DateTimeFormat
impl<'de> Deserialize<'de> for DateTimeFormat
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
Source§impl PartialEq for DateTimeFormat
impl PartialEq for DateTimeFormat
Source§impl Serialize for DateTimeFormat
impl Serialize for DateTimeFormat
impl Copy for DateTimeFormat
impl Eq for DateTimeFormat
impl StructuralPartialEq for DateTimeFormat
Auto Trait Implementations§
impl Freeze for DateTimeFormat
impl RefUnwindSafe for DateTimeFormat
impl Send for DateTimeFormat
impl Sync for DateTimeFormat
impl Unpin for DateTimeFormat
impl UnwindSafe for DateTimeFormat
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more