pub struct WebhooksManager { /* private fields */ }Expand description
Operations for the “webhooks” API area.
Implementations§
Source§impl WebhooksManager
impl WebhooksManager
Sourcepub fn list(&self, opts: Option<WebhooksListOptions>) -> WebhooksListPaginator
pub fn list(&self, opts: Option<WebhooksListOptions>) -> WebhooksListPaginator
Iterate every crate::models::schemas::WebhookMini across pages, threading the cursor.
pub async fn create(&self, body: CreateWebhookRequest) -> Result<Webhook, Error>
pub async fn get(&self, webhook_id: String) -> Result<Webhook, Error>
pub async fn update( &self, webhook_id: String, body: UpdateWebhookRequest, ) -> Result<Webhook, Error>
pub async fn delete(&self, webhook_id: String) -> Result<(), Error>
Auto Trait Implementations§
impl !RefUnwindSafe for WebhooksManager
impl !UnwindSafe for WebhooksManager
impl Freeze for WebhooksManager
impl Send for WebhooksManager
impl Sync for WebhooksManager
impl Unpin for WebhooksManager
impl UnsafeUnpin for WebhooksManager
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