pub struct Scheduling {
    pub restriction: Option<ScheduleRestriction>,
    pub first_attempt: Option<DateTime<FixedOffset>>,
    pub expires: Option<DateTime<FixedOffset>>,
}Fields§
§restriction: Option<ScheduleRestriction>§first_attempt: Option<DateTime<FixedOffset>>§expires: Option<DateTime<FixedOffset>>Implementations§
Source§impl Scheduling
 
impl Scheduling
Trait Implementations§
Source§impl Clone for Scheduling
 
impl Clone for Scheduling
Source§fn clone(&self) -> Scheduling
 
fn clone(&self) -> Scheduling
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 Scheduling
 
impl Debug for Scheduling
Source§impl<'de> Deserialize<'de> for Scheduling
serde usually does a great job, but for the case of an optional
flattened value, it will silently swallow any errors that should
have been raised from parsing the fields it contained, and convert
that to a None value.
That’s very undesirable, and unfortunately for us, it means having
to manually implement Deserialize, so that is what this big chunk
of code is.
 
impl<'de> Deserialize<'de> for Scheduling
serde usually does a great job, but for the case of an optional flattened value, it will silently swallow any errors that should have been raised from parsing the fields it contained, and convert that to a None value. That’s very undesirable, and unfortunately for us, it means having to manually implement Deserialize, so that is what this big chunk of code is.
Source§fn deserialize<D>(
    deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
    D: Deserializer<'de>,
 
fn deserialize<D>(
    deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
    D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Scheduling
 
impl PartialEq for Scheduling
Source§impl Serialize for Scheduling
 
impl Serialize for Scheduling
impl Copy for Scheduling
impl StructuralPartialEq for Scheduling
Auto Trait Implementations§
impl Freeze for Scheduling
impl RefUnwindSafe for Scheduling
impl Send for Scheduling
impl Sync for Scheduling
impl Unpin for Scheduling
impl UnwindSafe for Scheduling
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,
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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