pub struct Webhooks<'a> { /* private fields */ }Expand description
Webhooks resource — create, list, update, delete, and test webhooks.
Implementations§
Source§impl<'a> Webhooks<'a>
impl<'a> Webhooks<'a>
Sourcepub async fn create(
&self,
req: &CreateWebhookRequest,
) -> Result<WebhookCreated, VynFiError>
pub async fn create( &self, req: &CreateWebhookRequest, ) -> Result<WebhookCreated, VynFiError>
Create a new webhook. The response includes the signing secret — store it securely, as it cannot be retrieved again.
Sourcepub async fn list(&self) -> Result<Vec<Webhook>, VynFiError>
pub async fn list(&self) -> Result<Vec<Webhook>, VynFiError>
List all webhooks for the current account.
Sourcepub async fn get(&self, webhook_id: &str) -> Result<WebhookDetail, VynFiError>
pub async fn get(&self, webhook_id: &str) -> Result<WebhookDetail, VynFiError>
Get a single webhook by ID, including recent delivery history.
Sourcepub async fn update(
&self,
webhook_id: &str,
req: &UpdateWebhookRequest,
) -> Result<Webhook, VynFiError>
pub async fn update( &self, webhook_id: &str, req: &UpdateWebhookRequest, ) -> Result<Webhook, VynFiError>
Update a webhook’s URL, events, or status.
Auto Trait Implementations§
impl<'a> Freeze for Webhooks<'a>
impl<'a> !RefUnwindSafe for Webhooks<'a>
impl<'a> Send for Webhooks<'a>
impl<'a> Sync for Webhooks<'a>
impl<'a> Unpin for Webhooks<'a>
impl<'a> UnsafeUnpin for Webhooks<'a>
impl<'a> !UnwindSafe for Webhooks<'a>
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