pub struct SchedulePolicy {
pub cadence: ScheduleCadence,
pub timezone: String,
pub catch_up: CatchUpPolicy,
}Expand description
Cadence, timezone and catch-up behavior of a schedule.
Fields§
§cadence: ScheduleCadenceCron, fixed-rate or fixed-delay.
timezone: StringIANA timezone for cron evaluation and DST.
catch_up: CatchUpPolicyMissed-window behavior.
Implementations§
Source§impl SchedulePolicy
impl SchedulePolicy
Sourcepub fn validate(&self) -> Result<(), ContractError>
pub fn validate(&self) -> Result<(), ContractError>
Check this contract’s invariants; returns the first violation.
Trait Implementations§
Source§impl Clone for SchedulePolicy
impl Clone for SchedulePolicy
Source§fn clone(&self) -> SchedulePolicy
fn clone(&self) -> SchedulePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchedulePolicy
impl Debug for SchedulePolicy
Source§impl<'de> Deserialize<'de> for SchedulePolicy
impl<'de> Deserialize<'de> for SchedulePolicy
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
impl Eq for SchedulePolicy
Source§impl PartialEq for SchedulePolicy
impl PartialEq for SchedulePolicy
Source§impl Serialize for SchedulePolicy
impl Serialize for SchedulePolicy
impl StructuralPartialEq for SchedulePolicy
Auto Trait Implementations§
impl Freeze for SchedulePolicy
impl RefUnwindSafe for SchedulePolicy
impl Send for SchedulePolicy
impl Sync for SchedulePolicy
impl Unpin for SchedulePolicy
impl UnsafeUnpin for SchedulePolicy
impl UnwindSafe for SchedulePolicy
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