pub enum TelegramCommand {
Run {
workflow: String,
shadow: bool,
variables: HashMap<String, String>,
},
Workflows,
Audit {
workflow_id: Option<String>,
},
Status,
Help,
Unknown {
text: String,
},
}Expand description
Parsed Telegram command from user message.
NOTE: This enum is nearly identical to DiscordCommand 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 TelegramCommand
impl Clone for TelegramCommand
Source§fn clone(&self) -> TelegramCommand
fn clone(&self) -> TelegramCommand
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 TelegramCommand
impl Debug for TelegramCommand
Source§impl PartialEq for TelegramCommand
impl PartialEq for TelegramCommand
impl Eq for TelegramCommand
impl StructuralPartialEq for TelegramCommand
Auto Trait Implementations§
impl Freeze for TelegramCommand
impl RefUnwindSafe for TelegramCommand
impl Send for TelegramCommand
impl Sync for TelegramCommand
impl Unpin for TelegramCommand
impl UnsafeUnpin for TelegramCommand
impl UnwindSafe for TelegramCommand
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.