pub enum Command {
Show 20 variants
Set {
name: String,
value: String,
},
Unset(String),
Toggle(String),
Query(String),
Bind {
menu: Menu,
key: String,
function: String,
},
Macro {
menu: Menu,
key: String,
seq: String,
},
Color {
object: String,
fg: String,
bg: String,
pattern: Option<String>,
},
Ignore(Vec<String>),
Unignore(Vec<String>),
Alternates(Vec<String>),
Unalternates(Vec<String>),
AutoView(Vec<String>),
UnAutoView(Vec<String>),
AlternativeOrder(Vec<String>),
UnAlternativeOrder(Vec<String>),
MyHdr(String),
UnMyHdr(Vec<String>),
Alias {
nick: String,
expansion: String,
},
Push(String),
Exec(String),
}Expand description
One command off the : prompt. A single line can yield several
(set a=1 b=2 is two assignments, like mutt).
Variants§
Set
Unset(String)
Toggle(String)
Query(String)
set name?: report the value instead of changing it.
Bind
Macro
Color
Ignore(Vec<String>)
Unignore(Vec<String>)
Alternates(Vec<String>)
mutt’s alternates / unalternates: regexes for my other
addresses (* un-does the lot).
Unalternates(Vec<String>)
AutoView(Vec<String>)
mutt’s auto_view / unauto_view: MIME types rendered inline
by a filter. auto_view leaves the command to mailcap (an empty
[filters] value); unauto_view * clears the lot.
UnAutoView(Vec<String>)
AlternativeOrder(Vec<String>)
mutt’s alternative_order / unalternative_order: which part
of a multipart/alternative wins (* un-does the lot).
UnAlternativeOrder(Vec<String>)
MyHdr(String)
mutt’s my_hdr: one “Name: value” line for every draft.
UnMyHdr(Vec<String>)
unmy_hdr NAME..., or * for all of them.
Alias
Push(String)
Keys fed to the input queue, as a macro sequence.
Exec(String)
A function name run directly.
Trait Implementations§
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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