pub struct Webhooks { /* private fields */ }Expand description
Accessed as client.webhooks().
Implementations§
Source§impl Webhooks
impl Webhooks
Sourcepub async fn create(&self, params: &CreateWebhook) -> Result<Webhook>
pub async fn create(&self, params: &CreateWebhook) -> Result<Webhook>
Create a webhook. The signing secret is generated and returned.
Sourcepub async fn update(&self, id: &str, params: &UpdateWebhook) -> Result<Webhook>
pub async fn update(&self, id: &str, params: &UpdateWebhook) -> Result<Webhook>
Update a webhook’s url, events, or active state (partial).
Sourcepub async fn test(&self, id: &str) -> Result<WebhookTestResult>
pub async fn test(&self, id: &str) -> Result<WebhookTestResult>
Queue a sample email.delivered delivery to test the endpoint.
Sourcepub async fn list_deliveries(
&self,
id: &str,
page: Option<u64>,
limit: Option<u64>,
status: Option<&str>,
) -> Result<Page<WebhookDelivery>>
pub async fn list_deliveries( &self, id: &str, page: Option<u64>, limit: Option<u64>, status: Option<&str>, ) -> Result<Page<WebhookDelivery>>
List delivery attempts for a webhook (paginated envelope).
Sourcepub async fn get_delivery(
&self,
id: &str,
delivery_id: &str,
) -> Result<WebhookDeliveryDetail>
pub async fn get_delivery( &self, id: &str, delivery_id: &str, ) -> Result<WebhookDeliveryDetail>
Fetch one delivery with its full payload and the endpoint’s response.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Webhooks
impl !UnwindSafe for Webhooks
impl Freeze for Webhooks
impl Send for Webhooks
impl Sync for Webhooks
impl Unpin for Webhooks
impl UnsafeUnpin for Webhooks
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