Skip to main content

ContactCommand

Enum ContactCommand 

Source
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

§group: Option<String>

Filter to a specific group.

§tag: Option<String>

Filter by tag.

§org: Option<String>

Filter by organization.

§role: Option<String>

Filter by role.

§

Show

Show a contact’s full file content.

Fields

§contact_ref: String

Contact ref: pYYYYMMDDNNN or pYYYYMMDDNNN-any-suffix.

§

Move

Move a contact to a different group.

Fields

§contact_ref: String

Contact ref: pYYYYMMDDNNN or pYYYYMMDDNNN-any-suffix.

§group: String

Destination group.

§

Rename

Rename a contact’s display name.

Fields

§contact_ref: String

Contact ref: pYYYYMMDDNNN or pYYYYMMDDNNN-any-suffix.

§name: String

New display name.

§

Email

Add or remove email addresses for a contact.

Fields

§

Phone

Add or remove phone numbers for a contact.

Fields

§

Tag

Add a tag to a contact.

Fields

§contact_ref: String

Contact ref: pYYYYMMDDNNN or pYYYYMMDDNNN-any-suffix.

§tag: String

Tag to add.

§

Untag

Remove a tag from a contact.

Fields

§contact_ref: String

Contact ref: pYYYYMMDDNNN or pYYYYMMDDNNN-any-suffix.

§tag: String

Tag to remove.

§

Notes

Show or edit contact notes.

Fields

§

Archive

Archive an active contact.

Fields

§contact_ref: String

Contact ref: pYYYYMMDDNNN or pYYYYMMDDNNN-any-suffix.

§reason: Option<String>

Why this contact is being archived; required by default.

§

Reopen

Reopen an archived contact as active.

Fields

§contact_ref: String

Contact ref: pYYYYMMDDNNN or pYYYYMMDDNNN-any-suffix.

§group: Option<String>

Destination group. Defaults to contact.default_group in config.

§reason: Option<String>

Why this contact should be reopened; required by default.

§

Extract

Extract stub contacts from message senders not yet in the contact list.

Fields

§from_triage: bool

Extract from triage messages only.

§from_case: Option<String>

Extract from a specific case’s messages.

§all: bool

Extract from all triage and case messages.

§group: Option<String>

Destination group for created contacts. Defaults to contact.default_group.

Trait Implementations§

Source§

impl Debug for ContactCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for ContactCommand

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for ContactCommand

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V