pub enum DatePatchItem {
Today,
Tomorrow,
ThisWeekend,
NextWeek,
NoDate,
Custom(DateTimeUtc),
}Variants§
Implementations§
Source§impl DatePatchItem
impl DatePatchItem
pub fn values() -> Vec<DatePatchItem>
Trait Implementations§
Source§impl Clone for DatePatchItem
impl Clone for DatePatchItem
impl Copy for DatePatchItem
Source§impl Debug for DatePatchItem
impl Debug for DatePatchItem
Source§impl<'de> Deserialize<'de> for DatePatchItem
impl<'de> Deserialize<'de> for DatePatchItem
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 Display for DatePatchItem
impl Display for DatePatchItem
impl Eq for DatePatchItem
Source§impl From<DatePatchItem> for Option<DateTimeUtc>
impl From<DatePatchItem> for Option<DateTimeUtc>
Source§fn from(value: DatePatchItem) -> Option<DateTimeUtc>
fn from(value: DatePatchItem) -> Option<DateTimeUtc>
Converts to this type from the input type.
Source§impl From<DateTime<Utc>> for DatePatchItem
impl From<DateTime<Utc>> for DatePatchItem
Source§fn from(dt: DateTimeUtc) -> Self
fn from(dt: DateTimeUtc) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DatePatchItem
impl PartialEq for DatePatchItem
Source§impl Serialize for DatePatchItem
impl Serialize for DatePatchItem
impl StructuralPartialEq for DatePatchItem
Auto Trait Implementations§
impl Freeze for DatePatchItem
impl RefUnwindSafe for DatePatchItem
impl Send for DatePatchItem
impl Sync for DatePatchItem
impl Unpin for DatePatchItem
impl UnsafeUnpin for DatePatchItem
impl UnwindSafe for DatePatchItem
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