pub struct WebhookClient { /* private fields */ }Expand description
Webhook client for dispatching publish events.
Implementations§
Source§impl WebhookClient
impl WebhookClient
Sourcepub fn new(config: &WebhookConfig) -> Result<Self>
pub fn new(config: &WebhookConfig) -> Result<Self>
Create a webhook client with the given configuration.
Sourcepub fn send_event(&self, event: WebhookEvent)
pub fn send_event(&self, event: WebhookEvent)
Send a webhook event asynchronously.
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 · 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 WebhookClient
impl RefUnwindSafe for WebhookClient
impl Send for WebhookClient
impl Sync for WebhookClient
impl Unpin for WebhookClient
impl UnsafeUnpin for WebhookClient
impl UnwindSafe 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