pub struct Webhook {
pub id: String,
pub url: String,
pub event_types: Vec<String>,
pub description: Option<String>,
pub is_active: bool,
pub payload_format: String,
pub created_at: String,
pub last_triggered_at: Option<String>,
pub secret: Option<String>,
}Expand description
A webhook subscription (WebhookOut/WebhookCreatedResponse). secret
is only ever populated on Client::create_webhook’s response – the
raw signing secret, shown exactly once; it cannot be retrieved again.
Fields§
§id: String§url: String§event_types: Vec<String>§description: Option<String>§is_active: bool§payload_format: String§created_at: String§last_triggered_at: Option<String>§secret: Option<String>The raw signing secret. Only present on Client::create_webhook’s
response – use it to verify the X-Boxxkite-Webhook-Signature
header on every delivery.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Webhook
impl<'de> Deserialize<'de> for Webhook
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 Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnsafeUnpin for Webhook
impl UnwindSafe for Webhook
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