Enum sig_proxy::command::Options[][src]

pub enum Options {
    Demo {
        listen: String,
    },
    Units {},
    Web3 {
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,
}, Contract(Command), Guide(Command), }

Variants

Demo
Show fields

Fields of Demo

listen: String
Units
Show fields

Fields of Units

Web3
Show fields

Fields of Web3

listen: Stringbackend: Urlweb3_rpc_url: Urladdress_header: HeaderNamebalance_header: HeaderNameerc1155_balance_header: HeaderNameerc20_balance_header: HeaderNameerc20_name_header: HeaderNameerc20_symbol_header: HeaderNameerc721_balance_header: HeaderNameerc721_name_header: HeaderNameerc721_symbol_header: HeaderNameerc777_balance_header: HeaderNameerc777_name_header: HeaderNameerc777_symbol_header: HeaderNamesignature_header: HeaderNamesecret_key_file: Option<PathBuf>secret_key_data: Option<HexData>challenge: Stringbalance_scale: BalanceScalebalance_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: boolprovides_account_verification: boolprovides_balances: boolprovides_erc1155_balance: boolprovides_erc20_balance: boolprovides_erc20_name: boolprovides_erc20_symbol: boolprovides_erc721_balance: boolprovides_erc721_name: boolprovides_erc721_symbol: boolprovides_erc777_balance: boolprovides_erc777_name: boolprovides_erc777_symbol: bool
Contract(Command)
Guide(Command)

Trait Implementations

impl Debug for Options[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl StructOpt for Options[src]

fn clap<'a, 'b>() -> App<'a, 'b>[src]

Returns clap::App corresponding to the struct.

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]

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]

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]

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]

Gets the struct from any iterator such as a Vec of your making. Read more

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]

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> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V