pub enum HookSelector {
Schedule {
schedule: RoutineSchedule,
ends_at: Option<i64>,
},
Event {
source: HookSource,
kind: HookKind,
routine_outcome: Option<RoutineRunStatus>,
session_outcome: Option<ExecutionOutcome>,
custom_name: Option<String>,
},
}Expand description
Exact trigger shared by routine bindings and reporting consumers.
Variants§
Schedule
The existing schedule model, owned by this binding.
Event
An exact source and typed boundary, with applicable outcome filters.
Fields
§
source: HookSourceSource identity.
§
routine_outcome: Option<RoutineRunStatus>Optional terminal routine outcome.
§
session_outcome: Option<ExecutionOutcome>Optional terminal session outcome.
Trait Implementations§
Source§impl Clone for HookSelector
impl Clone for HookSelector
Source§impl Debug for HookSelector
impl Debug for HookSelector
Source§impl<'de> Deserialize<'de> for HookSelector
impl<'de> Deserialize<'de> for HookSelector
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 HookSelector
Source§impl PartialEq for HookSelector
impl PartialEq for HookSelector
Source§impl Serialize for HookSelector
impl Serialize for HookSelector
impl StructuralPartialEq for HookSelector
Auto Trait Implementations§
impl Freeze for HookSelector
impl RefUnwindSafe for HookSelector
impl Send for HookSelector
impl Sync for HookSelector
impl Unpin for HookSelector
impl UnsafeUnpin for HookSelector
impl UnwindSafe for HookSelector
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.