pub struct WebhookRequest {
pub payload_type: PayloadType,
pub status: Status,
pub url: String,
pub enabled_events: Vec<EnabledEvent>,
pub name: Option<String>,
pub description: Option<String>,
}Expand description
Options when creating a new Webhook.
See https://sift.com/developers/docs/curl/webhooks-api/create for examples.
Fields§
§payload_type: PayloadTypeThe type of webhook payload
status: StatusThe webhook status.
url: StringThe URL of the webhook endpoint.
This must be HTTPS.
enabled_events: Vec<EnabledEvent>The list of events to enable for this endpoint.
These correspond to the Reserved Events in the Events API.
name: Option<String>A name you specify for this webhook.
description: Option<String>A description about what the webhook is used for.
Trait Implementations§
Source§impl Debug for WebhookRequest
impl Debug for WebhookRequest
Auto Trait Implementations§
impl Freeze for WebhookRequest
impl RefUnwindSafe for WebhookRequest
impl Send for WebhookRequest
impl Sync for WebhookRequest
impl Unpin for WebhookRequest
impl UnwindSafe for WebhookRequest
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