pub struct WebhookRegistration {
pub id: WebhookId,
pub path: String,
pub flow_spec: FlowSpec,
pub description: Option<String>,
pub created_at: u64,
}Expand description
A registered webhook that maps an HTTP path to a FlowSpec.
Fields§
§id: WebhookIdUnique webhook identifier.
path: StringThe URL path that triggers this webhook (e.g., “github/push”, “stripe/invoice”).
Does not include the /webhooks/ prefix – that is added by the router.
flow_spec: FlowSpecThe FlowSpec to execute when the webhook fires.
description: Option<String>Optional human-readable description.
created_at: u64Unix timestamp (seconds) when the webhook was registered.
Trait Implementations§
Source§impl Clone for WebhookRegistration
impl Clone for WebhookRegistration
Source§fn clone(&self) -> WebhookRegistration
fn clone(&self) -> WebhookRegistration
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 WebhookRegistration
impl Debug for WebhookRegistration
Source§impl<'de> Deserialize<'de> for WebhookRegistration
impl<'de> Deserialize<'de> for WebhookRegistration
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
Auto Trait Implementations§
impl Freeze for WebhookRegistration
impl RefUnwindSafe for WebhookRegistration
impl Send for WebhookRegistration
impl Sync for WebhookRegistration
impl Unpin for WebhookRegistration
impl UnsafeUnpin for WebhookRegistration
impl UnwindSafe for WebhookRegistration
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