pub enum WorkflowWebhookSecret {
NotFound,
NoTrigger,
Secret(Option<String>),
}Expand description
The raw result of looking up a workflow’s webhook trigger secret. The crate
(not the host) owns the empty-secret → NoSecret decision, so this returns
the trigger’s secret field verbatim (Secret(None) when the trigger exists
but carries no secret at all).
Variants§
NotFound
No workflow with this id exists.
NoTrigger
The workflow exists but declares no Webhook trigger.
Secret(Option<String>)
The workflow has a webhook trigger; carries its (optional) secret field.
Trait Implementations§
Source§impl Clone for WorkflowWebhookSecret
impl Clone for WorkflowWebhookSecret
Source§fn clone(&self) -> WorkflowWebhookSecret
fn clone(&self) -> WorkflowWebhookSecret
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 WorkflowWebhookSecret
impl Debug for WorkflowWebhookSecret
impl Eq for WorkflowWebhookSecret
Source§impl PartialEq for WorkflowWebhookSecret
impl PartialEq for WorkflowWebhookSecret
impl StructuralPartialEq for WorkflowWebhookSecret
Auto Trait Implementations§
impl Freeze for WorkflowWebhookSecret
impl RefUnwindSafe for WorkflowWebhookSecret
impl Send for WorkflowWebhookSecret
impl Sync for WorkflowWebhookSecret
impl Unpin for WorkflowWebhookSecret
impl UnsafeUnpin for WorkflowWebhookSecret
impl UnwindSafe for WorkflowWebhookSecret
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
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.