pub enum BotAction {
Report {
instruction: String,
},
Routine {
command: RoutineCommand,
},
Session {
session_id: String,
op: Box<Op>,
},
}Expand description
Typed actions shared by reporting and control subscriptions.
Variants§
Report
Deliver the saved reporting mandate to the Bot conversation.
Routine
Invoke the ordinary routine command handler.
Fields
§
command: RoutineCommandAddressed command.
Session
Submit an ordinary message or interrupt to an owned session.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotAction
impl<'de> Deserialize<'de> for BotAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BotAction
Auto Trait Implementations§
impl Freeze for BotAction
impl RefUnwindSafe for BotAction
impl Send for BotAction
impl Sync for BotAction
impl Unpin for BotAction
impl UnsafeUnpin for BotAction
impl UnwindSafe for BotAction
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