pub struct ScheduleEnd {
pub kind: String,
pub date: Option<String>,
pub count: Option<i64>,
}Expand description
Bounds a recurring schedule by either a date or a fire count.
Fields§
§kind: StringEnd mode: "date" (stop at date) or "count" (stop after count fires).
date: Option<String>ISO8601 datetime at which the schedule stops firing (when kind == "date").
count: Option<i64>Number of remaining fires before the schedule stops (when kind == "count").
Trait Implementations§
Source§impl Clone for ScheduleEnd
impl Clone for ScheduleEnd
Source§fn clone(&self) -> ScheduleEnd
fn clone(&self) -> ScheduleEnd
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 ScheduleEnd
impl Debug for ScheduleEnd
Source§impl Default for ScheduleEnd
impl Default for ScheduleEnd
Source§fn default() -> ScheduleEnd
fn default() -> ScheduleEnd
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScheduleEnd
impl<'de> Deserialize<'de> for ScheduleEnd
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 ScheduleEnd
impl RefUnwindSafe for ScheduleEnd
impl Send for ScheduleEnd
impl Sync for ScheduleEnd
impl Unpin for ScheduleEnd
impl UnsafeUnpin for ScheduleEnd
impl UnwindSafe for ScheduleEnd
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