pub struct ContactCreateArgs {
pub name: String,
pub group: Option<String>,
pub emails: Vec<String>,
pub phones: Vec<String>,
pub org: Option<String>,
pub role: Option<String>,
pub tags: Vec<String>,
}Fields§
§name: StringDisplay name for the contact.
group: Option<String>Group. Defaults to the configured default contact group.
emails: Vec<String>Email address. Repeatable.
phones: Vec<String>Phone number. Repeatable.
org: Option<String>Organization name.
role: Option<String>Role or title.
Tag. Repeatable.
Trait Implementations§
Source§impl Args for ContactCreateArgs
impl Args for ContactCreateArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ContactCreateArgs
impl Clone for ContactCreateArgs
Source§fn clone(&self) -> ContactCreateArgs
fn clone(&self) -> ContactCreateArgs
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 ContactCreateArgs
impl Debug for ContactCreateArgs
Source§impl FromArgMatches for ContactCreateArgs
impl FromArgMatches for ContactCreateArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ContactCreateArgs
impl RefUnwindSafe for ContactCreateArgs
impl Send for ContactCreateArgs
impl Sync for ContactCreateArgs
impl Unpin for ContactCreateArgs
impl UnsafeUnpin for ContactCreateArgs
impl UnwindSafe for ContactCreateArgs
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