pub struct FaucetArgs {
pub network_provider: NetworkProviderArgs,
address: Option<String>,
local_identity: IdentityFileArgs,
hopr_amount: f64,
native_amount: f64,
pub private_key: PrivateKeyArgs,
}
Expand description
CLI arguments for hopli faucet
Fields§
§network_provider: NetworkProviderArgs
Network name, contracts config file root, and customized provider, if available
address: Option<String>
Additional addresses (comma-separated) to receive funds.
local_identity: IdentityFileArgs
Argument to locate identity file(s)
hopr_amount: f64
The amount of HOPR tokens (in floating number) to be funded per wallet
native_amount: f64
The amount of native tokens (in floating number) to be funded per wallet
private_key: PrivateKeyArgs
Access to the private key, of which the wallet either contains sufficient assets as the source of funds or it can mint necessary tokens
Implementations§
Source§impl FaucetArgs
impl FaucetArgs
Sourceasync fn execute_faucet(self) -> Result<(), HelperErrors>
async fn execute_faucet(self) -> Result<(), HelperErrors>
Execute the faucet command, which funds addresses with required amount of tokens
Trait Implementations§
Source§impl Args for FaucetArgs
impl Args for FaucetArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentsSource§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 Cmd for FaucetArgs
impl Cmd for FaucetArgs
Source§impl CommandFactory for FaucetArgs
impl CommandFactory for FaucetArgs
Source§impl Debug for FaucetArgs
impl Debug for FaucetArgs
Source§impl Default for FaucetArgs
impl Default for FaucetArgs
Source§fn default() -> FaucetArgs
fn default() -> FaucetArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for FaucetArgs
impl FromArgMatches for FaucetArgs
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 Parser for FaucetArgs
impl Parser for FaucetArgs
§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.
Auto Trait Implementations§
impl Freeze for FaucetArgs
impl RefUnwindSafe for FaucetArgs
impl Send for FaucetArgs
impl Sync for FaucetArgs
impl Unpin for FaucetArgs
impl UnwindSafe for FaucetArgs
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
§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