pub enum ChannelEvent {
Message {
thread: String,
reply_to: String,
text: String,
},
Respond(Value),
Ignore,
}Expand description
What a webhook means.
Variants§
Message
A message for the agent. thread identifies the conversation (one
session per thread); reply_to is where Channel::deliver posts.
Respond(Value)
Answer the webhook directly (e.g. Slack’s URL verification).
Ignore
Acknowledge and do nothing.
Trait Implementations§
Source§impl Clone for ChannelEvent
impl Clone for ChannelEvent
Source§impl Debug for ChannelEvent
impl Debug for ChannelEvent
Source§impl PartialEq for ChannelEvent
impl PartialEq for ChannelEvent
impl StructuralPartialEq for ChannelEvent
Auto Trait Implementations§
impl Freeze for ChannelEvent
impl RefUnwindSafe for ChannelEvent
impl Send for ChannelEvent
impl Sync for ChannelEvent
impl Unpin for ChannelEvent
impl UnsafeUnpin for ChannelEvent
impl UnwindSafe for ChannelEvent
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