pub enum DayResult {
Accepted {
day: DayAccepted,
},
Rejected {
date: NaiveDate,
error: String,
},
}Expand description
One day’s fate inside a batch.
Tagged by status to match what the server serializes. An unrecognized
tag is a contract the two sides no longer share, and is surfaced rather
than silently treated as either outcome.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DayResult
impl<'de> Deserialize<'de> for DayResult
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
Auto Trait Implementations§
impl Freeze for DayResult
impl RefUnwindSafe for DayResult
impl Send for DayResult
impl Sync for DayResult
impl Unpin for DayResult
impl UnsafeUnpin for DayResult
impl UnwindSafe for DayResult
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