pub struct WebhookHandle {
pub url: Url,
pub received: BoxFuture<'static, Result<WebhookPayload, ProviderError>>,
}Expand description
A prepared webhook: the URL to hand to the provider and a future that resolves when the callback arrives.
Fields§
§url: UrlPublicly reachable callback URL.
received: BoxFuture<'static, Result<WebhookPayload, ProviderError>>Resolves with the callback payload.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WebhookHandle
impl !Sync for WebhookHandle
impl !UnwindSafe for WebhookHandle
impl Freeze for WebhookHandle
impl Send for WebhookHandle
impl Unpin for WebhookHandle
impl UnsafeUnpin for WebhookHandle
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