pub enum IdentitySubcommands {
Create {
local_identity: IdentityFileArgs,
number: u32,
},
Read {
local_identity: IdentityFileArgs,
},
Update {
local_identity: IdentityFileArgs,
new_password: NewPasswordArgs,
},
ConvertPeer {
peer_or_key: ConvertPeerArgs,
},
}
Expand description
CLI arguments for hopli identity
Variants§
Create
Create safe and module proxy if nothing exists
Fields
§
local_identity: IdentityFileArgs
Arguments to locate identity file(s) of HOPR node(s)
Read
Migrate safe and module to a new network
Fields
§
local_identity: IdentityFileArgs
Arguments to locate identity file(s) of HOPR node(s)
Update
Update the password of identity files
Fields
§
local_identity: IdentityFileArgs
Arguments to locate identity files of HOPR node(s)
§
new_password: NewPasswordArgs
New password
ConvertPeer
Converts PeerId from base58 to public key as hex or vice-versa
Fields
§
peer_or_key: ConvertPeerArgs
PeerID or Public key
Implementations§
Source§impl IdentitySubcommands
impl IdentitySubcommands
Sourcefn execute_identity_creation_loop(
local_identity: IdentityFileArgs,
number: u32,
) -> Result<(), HelperErrors>
fn execute_identity_creation_loop( local_identity: IdentityFileArgs, number: u32, ) -> Result<(), HelperErrors>
Execute the command to create identities
Sourcefn execute_identity_read_loop(
local_identity: IdentityFileArgs,
) -> Result<(), HelperErrors>
fn execute_identity_read_loop( local_identity: IdentityFileArgs, ) -> Result<(), HelperErrors>
Execute the command to read identities
Sourcefn execute_identity_update(
local_identity: IdentityFileArgs,
new_password: NewPasswordArgs,
) -> Result<(), HelperErrors>
fn execute_identity_update( local_identity: IdentityFileArgs, new_password: NewPasswordArgs, ) -> Result<(), HelperErrors>
update the password of an identity file
Trait Implementations§
Source§impl Clone for IdentitySubcommands
impl Clone for IdentitySubcommands
Source§fn clone(&self) -> IdentitySubcommands
fn clone(&self) -> IdentitySubcommands
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 Cmd for IdentitySubcommands
impl Cmd for IdentitySubcommands
Source§impl CommandFactory for IdentitySubcommands
impl CommandFactory for IdentitySubcommands
Source§impl Debug for IdentitySubcommands
impl Debug for IdentitySubcommands
Source§impl FromArgMatches for IdentitySubcommands
impl FromArgMatches for IdentitySubcommands
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 Parser for IdentitySubcommands
impl Parser for IdentitySubcommands
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error. Read more
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Source§impl Subcommand for IdentitySubcommands
impl Subcommand for IdentitySubcommands
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 IdentitySubcommands
impl RefUnwindSafe for IdentitySubcommands
impl Send for IdentitySubcommands
impl Sync for IdentitySubcommands
impl Unpin for IdentitySubcommands
impl UnwindSafe for IdentitySubcommands
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more