pub enum ChatCommand {
Run {
workflow: String,
shadow: bool,
variables: HashMap<String, String>,
},
Workflow {
action: WorkflowAction,
},
Workflows,
Status,
Audit {
workflow_id: Option<String>,
},
Help,
Stop {
execution_id: String,
},
Approve {
execution_id: String,
},
Deny {
execution_id: String,
},
Schedule,
Skills,
Unknown {
text: String,
},
}Expand description
Parsed command from a chat message.
NOTE: This enum is nearly identical to DiscordCommand and TelegramCommand.
A shared command enum should be considered to reduce duplication.
Variants§
Run
Run a workflow: /run <name> [--shadow] [--var key=value]
Workflow
Workflow command: /workflow run <name>, /workflow list, /workflow status <id>
Fields
§
action: WorkflowActionWorkflows
List workflows: /workflows
Status
Show status: /status
Audit
Show audit log: /audit [workflow_id]
Help
Show help: /help
Stop
Stop a running workflow: /stop <execution_id>
Approve
Approve a breakpoint: /approve <execution_id>
Deny
Deny a breakpoint: /deny <execution_id>
Schedule
List scheduled jobs: /schedule
Skills
Show skills: /skills
Unknown
Unknown command
Trait Implementations§
Source§impl Clone for ChatCommand
impl Clone for ChatCommand
Source§fn clone(&self) -> ChatCommand
fn clone(&self) -> ChatCommand
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 moreSource§impl Debug for ChatCommand
impl Debug for ChatCommand
Source§impl<'de> Deserialize<'de> for ChatCommand
impl<'de> Deserialize<'de> for ChatCommand
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
Auto Trait Implementations§
impl Freeze for ChatCommand
impl RefUnwindSafe for ChatCommand
impl Send for ChatCommand
impl Sync for ChatCommand
impl Unpin for ChatCommand
impl UnsafeUnpin for ChatCommand
impl UnwindSafe for ChatCommand
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