#[non_exhaustive]pub enum DateInput {
Time(SystemTime),
Date {
year: i32,
month: u32,
day: u32,
},
Text(String),
}Expand description
A from or to value.
A SystemTime goes out as UTC ISO 8601 with milliseconds (2026-11-01T00:00:00.000Z),
a date as YYYY-MM-DD, and a string unchanged. A time without a zone cannot be expressed.
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.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DateInput
impl<'de> Deserialize<'de> for DateInput
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 DateInput
Source§impl From<SystemTime> for DateInput
impl From<SystemTime> for DateInput
Source§fn from(value: SystemTime) -> Self
fn from(value: SystemTime) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DateInput
Auto Trait Implementations§
impl Forget for DateInput
impl Freeze for DateInput
impl Move for DateInput
impl RefUnwindSafe for DateInput
impl Send for DateInputwhere
RawVecInner: Send,
impl Sync for DateInputwhere
RawVecInner: Sync,
impl Unpin for DateInput
impl UnsafeUnpin for DateInput
impl UnwindSafe for DateInputwhere
RawVecInner: UnwindSafe,
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