pub struct ScheduledTrigger {
pub name: &'static str,
pub schedule: &'static str,
pub description: &'static str,
}Expand description
A scheduled entry of a model’s hook triggers (schedule: on a trigger): what a composing
service’s scheduler runs at schedule, with the generated run_<model>_scheduled.
Fields§
§name: &'static strThe entry’s name (its key in the hook file).
schedule: &'static strThe schedule as written: cron, every 5.minutes, every 1.day at 03:00.
description: &'static strWhat the entry says it is for.
Trait Implementations§
Source§impl Clone for ScheduledTrigger
impl Clone for ScheduledTrigger
impl Copy for ScheduledTrigger
Source§impl Debug for ScheduledTrigger
impl Debug for ScheduledTrigger
impl Eq for ScheduledTrigger
Source§impl PartialEq for ScheduledTrigger
impl PartialEq for ScheduledTrigger
impl StructuralPartialEq for ScheduledTrigger
Auto Trait Implementations§
impl Freeze for ScheduledTrigger
impl RefUnwindSafe for ScheduledTrigger
impl Send for ScheduledTrigger
impl Sync for ScheduledTrigger
impl Unpin for ScheduledTrigger
impl UnsafeUnpin for ScheduledTrigger
impl UnwindSafe for ScheduledTrigger
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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