pub struct WebhooksClient {
pub http_client: HttpClient,
}Fields§
§http_client: HttpClientImplementations§
Source§impl WebhooksClient
impl WebhooksClient
pub fn new(config: ClientConfig) -> Result<Self, ApiError>
Sourcepub async fn list_webhook_subscriptions(
&self,
request: &ListWebhookSubscriptionsQueryRequest,
options: Option<RequestOptions>,
) -> Result<PaginatedResponseWebhookSubscriptionResponse, ApiError>
pub async fn list_webhook_subscriptions( &self, request: &ListWebhookSubscriptionsQueryRequest, options: Option<RequestOptions>, ) -> Result<PaginatedResponseWebhookSubscriptionResponse, ApiError>
Sourcepub async fn create_webhook_subscription(
&self,
request: &WebhookCreatePayload,
options: Option<RequestOptions>,
) -> Result<WebhookSubscriptionResponse, ApiError>
pub async fn create_webhook_subscription( &self, request: &WebhookCreatePayload, options: Option<RequestOptions>, ) -> Result<WebhookSubscriptionResponse, ApiError>
Sourcepub async fn get_webhook_subscription(
&self,
webhook_id: &str,
options: Option<RequestOptions>,
) -> Result<WebhookSubscriptionResponse, ApiError>
pub async fn get_webhook_subscription( &self, webhook_id: &str, options: Option<RequestOptions>, ) -> Result<WebhookSubscriptionResponse, ApiError>
Sourcepub async fn update_webhook_subscription(
&self,
webhook_id: &str,
request: &WebhookUpdatePayload,
options: Option<RequestOptions>,
) -> Result<WebhookSubscriptionResponse, ApiError>
pub async fn update_webhook_subscription( &self, webhook_id: &str, request: &WebhookUpdatePayload, options: Option<RequestOptions>, ) -> Result<WebhookSubscriptionResponse, ApiError>
Sourcepub async fn delete_webhook_subscription(
&self,
webhook_id: &str,
options: Option<RequestOptions>,
) -> Result<HashMap<String, Value>, ApiError>
pub async fn delete_webhook_subscription( &self, webhook_id: &str, options: Option<RequestOptions>, ) -> Result<HashMap<String, Value>, ApiError>
Sourcepub async fn list_webhook_logs(
&self,
request: &ListWebhookLogsQueryRequest,
options: Option<RequestOptions>,
) -> Result<PaginatedResponseWebhookLogResponse, ApiError>
pub async fn list_webhook_logs( &self, request: &ListWebhookLogsQueryRequest, options: Option<RequestOptions>, ) -> Result<PaginatedResponseWebhookLogResponse, ApiError>
Auto Trait Implementations§
impl !RefUnwindSafe for WebhooksClient
impl !UnwindSafe for WebhooksClient
impl Freeze for WebhooksClient
impl Send for WebhooksClient
impl Sync for WebhooksClient
impl Unpin for WebhooksClient
impl UnsafeUnpin for WebhooksClient
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