pub struct WebhookDefinition {
pub name: String,
pub path: String,
pub provider: WebhookProvider,
pub secret: String,
pub agent: Option<String>,
pub filter: Option<WebhookFilter>,
}Expand description
A parsed webhook definition from DSL webhook blocks.
Fields§
§name: StringName identifier for this webhook.
path: StringURL path to receive webhooks on.
provider: WebhookProviderWebhook provider type.
secret: StringSecret for webhook signature verification.
agent: Option<String>Name of the agent to invoke on webhook receipt.
filter: Option<WebhookFilter>Optional filter to apply to incoming webhook payloads.
Trait Implementations§
Source§impl Clone for WebhookDefinition
impl Clone for WebhookDefinition
Source§fn clone(&self) -> WebhookDefinition
fn clone(&self) -> WebhookDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 WebhookDefinition
impl Debug for WebhookDefinition
Source§impl<'de> Deserialize<'de> for WebhookDefinition
impl<'de> Deserialize<'de> for WebhookDefinition
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
Source§impl PartialEq for WebhookDefinition
impl PartialEq for WebhookDefinition
Source§impl Serialize for WebhookDefinition
impl Serialize for WebhookDefinition
impl StructuralPartialEq for WebhookDefinition
Auto Trait Implementations§
impl Freeze for WebhookDefinition
impl RefUnwindSafe for WebhookDefinition
impl Send for WebhookDefinition
impl Sync for WebhookDefinition
impl Unpin for WebhookDefinition
impl UnsafeUnpin for WebhookDefinition
impl UnwindSafe for WebhookDefinition
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