pub struct WebhooksApi { /* private fields */ }Implementations§
Source§impl WebhooksApi
impl WebhooksApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn list(&self, location_id: &str) -> Result<GetWebhooksResponse>
pub async fn get(&self, webhook_id: &str) -> Result<GetWebhookResponse>
pub async fn create( &self, location_id: &str, params: &CreateWebhookParams, ) -> Result<GetWebhookResponse>
pub async fn update( &self, webhook_id: &str, params: &UpdateWebhookParams, ) -> Result<GetWebhookResponse>
pub async fn delete(&self, webhook_id: &str) -> Result<DeleteWebhookResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for WebhooksApi
impl !UnwindSafe for WebhooksApi
impl Freeze for WebhooksApi
impl Send for WebhooksApi
impl Sync for WebhooksApi
impl Unpin for WebhooksApi
impl UnsafeUnpin for WebhooksApi
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