pub struct WebhooksClient<'a> { /* private fields */ }Expand description
Client for webhook operations (/{org}/{repo}/webhooks).
Implementations§
Source§impl WebhooksClient<'_>
impl WebhooksClient<'_>
Sourcepub async fn list(
&self,
) -> Result<GetByOrgByRepoWebhooks200Response, Error<GetByOrgByRepoWebhooksError>>
pub async fn list( &self, ) -> Result<GetByOrgByRepoWebhooks200Response, Error<GetByOrgByRepoWebhooksError>>
Sourcepub async fn create(
&self,
request: PostByOrgByRepoWebhooksRequest,
) -> Result<PostByOrgByRepoWebhooks201Response, Error<PostByOrgByRepoWebhooksError>>
pub async fn create( &self, request: PostByOrgByRepoWebhooksRequest, ) -> Result<PostByOrgByRepoWebhooks201Response, Error<PostByOrgByRepoWebhooksError>>
Sourcepub async fn delete(
&self,
webhook_id: &str,
) -> Result<DeleteByOrgApiKeysById200Response, Error<DeleteByOrgByRepoWebhooksByWebhookIdError>>
pub async fn delete( &self, webhook_id: &str, ) -> Result<DeleteByOrgApiKeysById200Response, Error<DeleteByOrgByRepoWebhooksByWebhookIdError>>
Trait Implementations§
Source§impl<'a> Clone for WebhooksClient<'a>
impl<'a> Clone for WebhooksClient<'a>
Source§fn clone(&self) -> WebhooksClient<'a>
fn clone(&self) -> WebhooksClient<'a>
Returns a duplicate of the value. Read more
1.0.0 · 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<'a> Freeze for WebhooksClient<'a>
impl<'a> !RefUnwindSafe for WebhooksClient<'a>
impl<'a> Send for WebhooksClient<'a>
impl<'a> Sync for WebhooksClient<'a>
impl<'a> Unpin for WebhooksClient<'a>
impl<'a> !UnwindSafe for WebhooksClient<'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