Enum sig_proxy::command::Options [−][src]
pub enum Options { Demo { listen: String, }, Units {}, Web3 {}, Contract(Command), Guide(Command), }Show fields
listen: String, backend: Url, web3_rpc_url: Url, address_header: HeaderName, balance_header: HeaderName, erc1155_balance_header: HeaderName, erc20_balance_header: HeaderName, erc20_name_header: HeaderName, erc20_symbol_header: HeaderName, erc721_balance_header: HeaderName, erc721_name_header: HeaderName, erc721_symbol_header: HeaderName, erc777_balance_header: HeaderName, erc777_name_header: HeaderName, erc777_symbol_header: HeaderName, signature_header: HeaderName, secret_key_file: Option<PathBuf>, secret_key_data: Option<HexData>, challenge: String, balance_scale: BalanceScale, balance_minimum: Option<U256>, balance_maximum: Option<U256>, erc1155_balance_minimum: Option<U256>, erc1155_balance_maximum: Option<U256>, erc20_balance_minimum: Option<U256>, erc20_balance_maximum: Option<U256>, erc721_balance_minimum: Option<U256>, erc721_balance_maximum: Option<U256>, erc777_balance_minimum: Option<U256>, erc777_balance_maximum: Option<U256>, erc1155_contract_address: Option<Address>, erc20_contract_address: Option<Address>, erc721_contract_address: Option<Address>, erc777_contract_address: Option<Address>, provides_signatures: bool, provides_account_verification: bool, provides_balances: bool, provides_erc1155_balance: bool, provides_erc20_balance: bool, provides_erc20_name: bool, provides_erc20_symbol: bool, provides_erc721_balance: bool, provides_erc721_name: bool, provides_erc721_symbol: bool, provides_erc777_balance: bool, provides_erc777_name: bool, provides_erc777_symbol: bool,
Variants
Show fields
Fields of Demo
listen: String
Show fields
Fields of Units
Show fields
Fields of Web3
listen: String
backend: Url
web3_rpc_url: Url
address_header: HeaderName
balance_header: HeaderName
erc1155_balance_header: HeaderName
erc20_balance_header: HeaderName
erc20_name_header: HeaderName
erc20_symbol_header: HeaderName
erc721_balance_header: HeaderName
erc721_name_header: HeaderName
erc721_symbol_header: HeaderName
erc777_balance_header: HeaderName
erc777_name_header: HeaderName
erc777_symbol_header: HeaderName
signature_header: HeaderName
secret_key_file: Option<PathBuf>
secret_key_data: Option<HexData>
challenge: String
balance_scale: BalanceScale
balance_minimum: Option<U256>
balance_maximum: Option<U256>
erc1155_balance_minimum: Option<U256>
erc1155_balance_maximum: Option<U256>
erc20_balance_minimum: Option<U256>
erc20_balance_maximum: Option<U256>
erc721_balance_minimum: Option<U256>
erc721_balance_maximum: Option<U256>
erc777_balance_minimum: Option<U256>
erc777_balance_maximum: Option<U256>
erc1155_contract_address: Option<Address>
erc20_contract_address: Option<Address>
erc721_contract_address: Option<Address>
erc777_contract_address: Option<Address>
provides_signatures: bool
provides_account_verification: bool
provides_balances: bool
provides_erc1155_balance: bool
provides_erc20_balance: bool
provides_erc20_name: bool
provides_erc20_symbol: bool
provides_erc721_balance: bool
provides_erc721_name: bool
provides_erc721_symbol: bool
provides_erc777_balance: bool
provides_erc777_name: bool
provides_erc777_symbol: bool
Trait Implementations
impl StructOpt for Options
[src]
impl StructOpt for Options
[src]fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]Builds the struct from clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic. Read more
fn from_args() -> Self
[src]
fn from_args() -> Self
[src]Builds the struct from the command line arguments (std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program. Read more
fn from_args_safe() -> Result<Self, Error>
[src]
fn from_args_safe() -> Result<Self, Error>
[src]Builds the struct from the command line arguments (std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]Gets the struct from any iterator such as a Vec
of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]Gets the struct from any iterator such as a Vec
of your making. Read more
impl StructOptInternal for Options
[src]
impl StructOptInternal for Options
[src]fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn from_subcommand<'a, 'b>(
sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
[src]
sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
fn is_subcommand() -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,