pub enum CardinalCommand {
Show 23 variants
List(ListTarget),
Open(Selector),
Compose,
Reply {
all: bool,
},
Forward {
recipient: String,
},
Archive,
Delete,
Spam,
Mark(MarkState),
Move {
target: String,
},
Send {
confirm: bool,
},
Search {
query: String,
},
Calendar(CalendarView),
Agenda(AgendaRange),
Event(EventCommand),
Invite(InviteCommand),
Sync(SyncTarget),
Undo,
Help,
Bindings,
Config,
Reload,
Quit,
}Expand description
A parsed Cardinal command.
Commands represent user intent. They do not directly perform filesystem, network, or terminal effects.
Variants§
List(ListTarget)
Open(Selector)
Compose
Reply
Forward
Archive
Delete
Spam
Mark(MarkState)
Move
Send
Search
Calendar(CalendarView)
Agenda(AgendaRange)
Event(EventCommand)
Invite(InviteCommand)
Sync(SyncTarget)
Undo
Help
Bindings
Config
Reload
Quit
Trait Implementations§
Source§impl Clone for CardinalCommand
impl Clone for CardinalCommand
Source§fn clone(&self) -> CardinalCommand
fn clone(&self) -> CardinalCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CardinalCommand
impl Debug for CardinalCommand
Source§impl PartialEq for CardinalCommand
impl PartialEq for CardinalCommand
Source§fn eq(&self, other: &CardinalCommand) -> bool
fn eq(&self, other: &CardinalCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CardinalCommand
impl StructuralPartialEq for CardinalCommand
Auto Trait Implementations§
impl Freeze for CardinalCommand
impl RefUnwindSafe for CardinalCommand
impl Send for CardinalCommand
impl Sync for CardinalCommand
impl Unpin for CardinalCommand
impl UnsafeUnpin for CardinalCommand
impl UnwindSafe for CardinalCommand
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