pub struct AddPeerOpts {
pub name: Option<Hostname>,
pub ip: Option<IpAddr>,
pub auto_ip: bool,
pub cidr: Option<String>,
pub admin: Option<bool>,
pub yes: bool,
pub save_config: Option<String>,
pub invite_expires: Option<Timestring>,
}Fields§
§name: Option<Hostname>Name of new peer
ip: Option<IpAddr>Specify desired IP of new peer (within parent CIDR)
auto_ip: boolAuto-assign the peer the first available IP within the CIDR
cidr: Option<String>Name of CIDR to add new peer under
admin: Option<bool>Make new peer an admin?
yes: boolBypass confirmation
save_config: Option<String>Save the config to the given location
invite_expires: Option<Timestring>Invite expiration period (eg. ‘30d’, ‘7w’, ‘2h’, ‘60m’, ‘1000s’)
Trait Implementations§
Source§impl Args for AddPeerOpts
impl Args for AddPeerOpts
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 AddPeerOpts
impl Clone for AddPeerOpts
Source§fn clone(&self) -> AddPeerOpts
fn clone(&self) -> AddPeerOpts
Returns a duplicate of the value. Read more
1.0.0 · 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 AddPeerOpts
impl Debug for AddPeerOpts
Source§impl FromArgMatches for AddPeerOpts
impl FromArgMatches for AddPeerOpts
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.Source§impl PartialEq for AddPeerOpts
impl PartialEq for AddPeerOpts
impl Eq for AddPeerOpts
impl StructuralPartialEq for AddPeerOpts
Auto Trait Implementations§
impl Freeze for AddPeerOpts
impl RefUnwindSafe for AddPeerOpts
impl Send for AddPeerOpts
impl Sync for AddPeerOpts
impl Unpin for AddPeerOpts
impl UnwindSafe for AddPeerOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.