pub struct WebhooksService { /* private fields */ }Implementations§
Source§impl WebhooksService
impl WebhooksService
pub fn new(client: MetrcClient, rate_limiter: Arc<MetrcRateLimiter>) -> Self
Sourcepub async fn delete_webhooks_by_subscription_id(
&self,
subscription_id: &str,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error + Send + Sync>>
pub async fn delete_webhooks_by_subscription_id( &self, subscription_id: &str, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error + Send + Sync>>
DELETE DeleteWebhooksBySubscriptionId
Parameters:
- subscription_id (str): Path parameter subscriptionId
Sourcepub async fn get_webhooks(
&self,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error + Send + Sync>>
pub async fn get_webhooks( &self, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error + Send + Sync>>
GET GetWebhooks
Parameters:
Sourcepub async fn update_webhooks_disable_by_subscription_id(
&self,
subscription_id: &str,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error + Send + Sync>>
pub async fn update_webhooks_disable_by_subscription_id( &self, subscription_id: &str, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error + Send + Sync>>
PUT UpdateDisableBySubscriptionId
Parameters:
- subscription_id (str): Path parameter subscriptionId
- body (Option<&Value>): Request body
Sourcepub async fn update_webhooks_enable_by_subscription_id(
&self,
subscription_id: &str,
body: Option<&Value>,
) -> Result<Option<Value>, Box<dyn Error + Send + Sync>>
pub async fn update_webhooks_enable_by_subscription_id( &self, subscription_id: &str, body: Option<&Value>, ) -> Result<Option<Value>, Box<dyn Error + Send + Sync>>
PUT UpdateEnableBySubscriptionId
Parameters:
- subscription_id (str): Path parameter subscriptionId
- body (Option<&Value>): Request body
Sourcepub async fn update_webhooks(
&self,
body: Option<UpdateWebhooksRequest>,
) -> Result<Option<WriteResponse>, Box<dyn Error + Send + Sync>>
pub async fn update_webhooks( &self, body: Option<UpdateWebhooksRequest>, ) -> Result<Option<WriteResponse>, Box<dyn Error + Send + Sync>>
PUT UpdateWebhooks
Parameters:
- body (Option<&Value>): Request body
Auto Trait Implementations§
impl Freeze for WebhooksService
impl !RefUnwindSafe for WebhooksService
impl Send for WebhooksService
impl Sync for WebhooksService
impl Unpin for WebhooksService
impl UnsafeUnpin for WebhooksService
impl !UnwindSafe for WebhooksService
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