pub enum DiscordCommand {
Run {
workflow: String,
shadow: bool,
variables: HashMap<String, String>,
},
Workflows,
Audit {
workflow_id: Option<String>,
},
Status,
Help,
Unknown {
text: String,
},
}Expand description
Parsed Discord command from user message.
NOTE: This enum is nearly identical to TelegramCommand and ChatCommand.
A shared command enum should be considered to reduce duplication.
Variants§
Run
!run
Workflows
!workflows — list available workflows
Audit
!audit [workflow_id] — show audit log
Status
!status — show daemon status
Help
!help — show help text
Unknown
Unknown command
Trait Implementations§
Source§impl Clone for DiscordCommand
impl Clone for DiscordCommand
Source§fn clone(&self) -> DiscordCommand
fn clone(&self) -> DiscordCommand
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 DiscordCommand
impl Debug for DiscordCommand
Source§impl PartialEq for DiscordCommand
impl PartialEq for DiscordCommand
impl Eq for DiscordCommand
impl StructuralPartialEq for DiscordCommand
Auto Trait Implementations§
impl Freeze for DiscordCommand
impl RefUnwindSafe for DiscordCommand
impl Send for DiscordCommand
impl Sync for DiscordCommand
impl Unpin for DiscordCommand
impl UnsafeUnpin for DiscordCommand
impl UnwindSafe for DiscordCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.