pub enum Trigger {
Manual,
Scheduled(Schedule),
}Expand description
What starts a pipeline.
Variants§
Manual
A human sends the first flight.
Scheduled(Schedule)
The Tower sends the first flight on a clock.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trigger
impl<'de> Deserialize<'de> for Trigger
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>,
Accepts "manual" or a table with exactly one of every and cron.
Hand-written rather than an untagged enum: untagged loses the inner error and reports only “data did not match any variant”, which turns a one-character typo into a puzzle. A factory definition should say what is wrong with it while a human is still watching.
impl Eq for Trigger
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl Freeze for Trigger
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnsafeUnpin for Trigger
impl UnwindSafe for Trigger
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