pub struct WebhooksResource { /* private fields */ }Implementations§
Source§impl WebhooksResource
impl WebhooksResource
pub async fn create(&self, request: &WebhookCreateRequest) -> Result<Webhook>
pub async fn create_response( &self, request: &WebhookCreateRequest, ) -> Result<ApiResponse<Webhook>>
pub async fn list(&self, query: &WebhookListQuery) -> Result<Vec<Webhook>>
pub async fn list_page(&self, query: &WebhookListQuery) -> Result<Page<Webhook>>
pub async fn delete(&self, id: impl AsRef<str>) -> Result<()>
Trait Implementations§
Source§impl Clone for WebhooksResource
impl Clone for WebhooksResource
Source§fn clone(&self) -> WebhooksResource
fn clone(&self) -> WebhooksResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WebhooksResource
impl !RefUnwindSafe for WebhooksResource
impl Send for WebhooksResource
impl Sync for WebhooksResource
impl Unpin for WebhooksResource
impl UnsafeUnpin for WebhooksResource
impl !UnwindSafe for WebhooksResource
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