pub struct WebhookClient { /* private fields */ }Expand description
Client for a specific webhook.
Implementations§
Source§impl WebhookClient
impl WebhookClient
Sourcepub async fn get(&self) -> ApifyClientResult<Option<Webhook>>
pub async fn get(&self) -> ApifyClientResult<Option<Webhook>>
Fetches the webhook, or None if it does not exist.
Sourcepub async fn update<T: Serialize>(
&self,
new_fields: &T,
) -> ApifyClientResult<Webhook>
pub async fn update<T: Serialize>( &self, new_fields: &T, ) -> ApifyClientResult<Webhook>
Updates the webhook with the given fields.
Sourcepub async fn delete(&self) -> ApifyClientResult<()>
pub async fn delete(&self) -> ApifyClientResult<()>
Deletes the webhook.
Sourcepub async fn test(&self) -> ApifyClientResult<WebhookDispatch>
pub async fn test(&self) -> ApifyClientResult<WebhookDispatch>
Tests the webhook by dispatching it immediately, returning the dispatch.
Sourcepub fn dispatches(&self) -> WebhookDispatchCollectionClient
pub fn dispatches(&self) -> WebhookDispatchCollectionClient
Returns a client for this webhook’s dispatch collection.
Trait Implementations§
Source§impl Clone for WebhookClient
impl Clone for WebhookClient
Source§fn clone(&self) -> WebhookClient
fn clone(&self) -> WebhookClient
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 !RefUnwindSafe for WebhookClient
impl !UnwindSafe for WebhookClient
impl Freeze for WebhookClient
impl Send for WebhookClient
impl Sync for WebhookClient
impl Unpin for WebhookClient
impl UnsafeUnpin for WebhookClient
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