pub struct Webhook;Expand description
A generic JSON webhook: {"thread": "...", "text": "..."} in, replies
printed (or POSTed to callback, when the request carries one).
Implementations§
Trait Implementations§
Source§impl Channel for Webhook
impl Channel for Webhook
Source§fn receive<'life0, 'async_trait>(
&'life0 self,
inbound: Inbound,
) -> Pin<Box<dyn Future<Output = Result<ChannelEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive<'life0, 'async_trait>(
&'life0 self,
inbound: Inbound,
) -> Pin<Box<dyn Future<Output = Result<ChannelEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Interpret one webhook.
Auto Trait Implementations§
impl Freeze for Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnsafeUnpin for Webhook
impl UnwindSafe for Webhook
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