pub struct WebhookTrigger {
pub id: String,
pub path: String,
pub workflow_id: String,
pub secret_token: Option<String>,
}Expand description
A registered webhook trigger that binds an HTTP path to a workflow.
Fields§
§id: StringUnique identifier for this trigger.
path: StringHTTP path that activates the trigger (e.g. "/webhooks/ingest-ready").
workflow_id: StringID of the workflow to start when this trigger fires.
secret_token: Option<String>Optional shared secret used to validate X-Signature headers.
When set the header value must match sha256=<xor_mac(body, secret)>.
Implementations§
Trait Implementations§
Source§impl Clone for WebhookTrigger
impl Clone for WebhookTrigger
Source§fn clone(&self) -> WebhookTrigger
fn clone(&self) -> WebhookTrigger
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 WebhookTrigger
impl Debug for WebhookTrigger
impl Eq for WebhookTrigger
Source§impl PartialEq for WebhookTrigger
impl PartialEq for WebhookTrigger
impl StructuralPartialEq for WebhookTrigger
Auto Trait Implementations§
impl Freeze for WebhookTrigger
impl RefUnwindSafe for WebhookTrigger
impl Send for WebhookTrigger
impl Sync for WebhookTrigger
impl Unpin for WebhookTrigger
impl UnsafeUnpin for WebhookTrigger
impl UnwindSafe for WebhookTrigger
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§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.