pub enum ContactCommand {
Show 13 variants
Create(ContactCreateArgs),
List {
group: Option<String>,
tag: Option<String>,
org: Option<String>,
role: Option<String>,
},
Show {
contact_ref: String,
},
Move {
contact_ref: String,
group: String,
},
Rename {
contact_ref: String,
name: String,
},
Email {
action: ContactEmailAction,
},
Phone {
action: ContactPhoneAction,
},
Tag {
contact_ref: String,
tag: String,
},
Untag {
contact_ref: String,
tag: String,
},
Notes {
action: ContactNotesAction,
},
Archive {
contact_ref: String,
reason: Option<String>,
},
Reopen {
contact_ref: String,
group: Option<String>,
reason: Option<String>,
},
Extract {
from_triage: bool,
from_case: Option<String>,
all: bool,
group: Option<String>,
},
}Variants§
Create(ContactCreateArgs)
Create a new contact record.
List
List contacts, optionally filtered by group, tag, org, or role.
Fields
Show
Show a contact’s full file content.
Move
Move a contact to a different group.
Fields
Rename
Rename a contact’s display name.
Fields
Add or remove email addresses for a contact.
Fields
§
action: ContactEmailActionPhone
Add or remove phone numbers for a contact.
Fields
§
action: ContactPhoneActionTag
Add a tag to a contact.
Fields
Untag
Remove a tag from a contact.
Fields
Notes
Show or edit contact notes.
Fields
§
action: ContactNotesActionArchive
Archive an active contact.
Fields
Reopen
Reopen an archived contact as active.
Fields
Extract
Extract stub contacts from message senders not yet in the contact list.
Trait Implementations§
Source§impl Debug for ContactCommand
impl Debug for ContactCommand
Source§impl FromArgMatches for ContactCommand
impl FromArgMatches for ContactCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for ContactCommand
impl Subcommand for ContactCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ContactCommand
impl RefUnwindSafe for ContactCommand
impl Send for ContactCommand
impl Sync for ContactCommand
impl Unpin for ContactCommand
impl UnsafeUnpin for ContactCommand
impl UnwindSafe for ContactCommand
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