Enum forge::opts::cast::Subcommands[][src]

pub enum Subcommands {
Show 37 variants MaxInt, MinInt, MaxUint, FromUtf8 { text: Option<String>, }, ToHex { decimal: Option<String>, }, ToHexdata { input: Option<String>, }, ToCheckSumAddress { address: Option<Address>, }, ToAscii { hexdata: Option<String>, }, ToBytes32 { bytes: Option<String>, }, ToDec { hexvalue: Option<String>, }, ToFix { decimals: Option<u128>, value: Option<String>, }, ToUint256 { value: Option<String>, }, ToWei { value: Option<String>, unit: Option<String>, }, FromWei { value: Option<String>, unit: Option<String>, }, Block { block: BlockId, full: bool, field: Option<String>, to_json: bool, rpc_url: String, }, BlockNumber { rpc_url: String, }, Call { address: NameOrAddress, sig: String, args: Vec<String>, rpc_url: String, }, Calldata { sig: String, args: Vec<String>, }, Chain { rpc_url: String, }, ChainId { rpc_url: String, }, Namehash { name: String, }, Tx { hash: String, field: Option<String>, to_json: bool, rpc_url: String, }, SendTx { to: NameOrAddress, sig: String, args: Vec<String>, cast_async: bool, eth: EthereumOpts, }, Estimate { to: NameOrAddress, sig: String, args: Vec<String>, eth: EthereumOpts, }, CalldataDecode { sig: String, calldata: String, }, AbiDecode { sig: String, calldata: String, input: bool, }, Age { block: Option<BlockId>, rpc_url: String, }, Balance { block: Option<BlockId>, who: NameOrAddress, rpc_url: String, }, BaseFee { block: Option<BlockId>, rpc_url: String, }, Code { block: Option<BlockId>, who: NameOrAddress, rpc_url: String, }, GasPrice { rpc_url: String, }, Keccak { data: String, }, ResolveName { who: Option<String>, rpc_url: String, verify: bool, }, LookupAddress { who: Option<Address>, rpc_url: String, verify: bool, }, Storage { address: NameOrAddress, slot: H256, rpc_url: String, block: Option<BlockId>, }, Nonce { block: Option<BlockId>, who: NameOrAddress, rpc_url: String, }, Wallet { command: WalletSubcommands, },
}

Variants

MaxInt
MinInt
MaxUint
FromUtf8

Fields of FromUtf8

text: Option<String>
ToHex

Fields of ToHex

decimal: Option<String>
ToHexdata

Fields of ToHexdata

input: Option<String>
ToCheckSumAddress

Fields of ToCheckSumAddress

address: Option<Address>
ToAscii

Fields of ToAscii

hexdata: Option<String>
ToBytes32

Fields of ToBytes32

bytes: Option<String>
ToDec

Fields of ToDec

hexvalue: Option<String>
ToFix

Fields of ToFix

decimals: Option<u128>value: Option<String>
ToUint256

Fields of ToUint256

value: Option<String>
ToWei

Fields of ToWei

value: Option<String>unit: Option<String>
FromWei

Fields of FromWei

value: Option<String>unit: Option<String>
Block

Fields of Block

block: BlockIdfull: boolfield: Option<String>to_json: boolrpc_url: String
BlockNumber

Fields of BlockNumber

rpc_url: String
Call

Fields of Call

address: NameOrAddresssig: Stringargs: Vec<String>rpc_url: String
Calldata

Fields of Calldata

sig: Stringargs: Vec<String>
Chain

Fields of Chain

rpc_url: String
ChainId

Fields of ChainId

rpc_url: String
Namehash

Fields of Namehash

name: String
Tx

Fields of Tx

hash: Stringfield: Option<String>to_json: boolrpc_url: String
SendTx

Fields of SendTx

to: NameOrAddresssig: Stringargs: Vec<String>cast_async: booleth: EthereumOpts
Estimate

Fields of Estimate

to: NameOrAddresssig: Stringargs: Vec<String>eth: EthereumOpts
CalldataDecode

Fields of CalldataDecode

sig: Stringcalldata: String
AbiDecode

Fields of AbiDecode

sig: Stringcalldata: Stringinput: bool
Age

Fields of Age

block: Option<BlockId>rpc_url: String
Balance

Fields of Balance

block: Option<BlockId>who: NameOrAddressrpc_url: String
BaseFee

Fields of BaseFee

block: Option<BlockId>rpc_url: String
Code

Fields of Code

block: Option<BlockId>who: NameOrAddressrpc_url: String
GasPrice

Fields of GasPrice

rpc_url: String
Keccak

Fields of Keccak

data: String
ResolveName

Fields of ResolveName

who: Option<String>rpc_url: Stringverify: bool
LookupAddress

Fields of LookupAddress

who: Option<Address>rpc_url: Stringverify: bool
Storage

Fields of Storage

address: NameOrAddressslot: H256rpc_url: Stringblock: Option<BlockId>
Nonce

Fields of Nonce

block: Option<BlockId>who: NameOrAddressrpc_url: String
Wallet

Fields of Wallet

command: WalletSubcommands

Trait Implementations

Formats the value using the given formatter. Read more

Returns clap::App corresponding to the struct.

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

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

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

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

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Set the foreground color generically Read more

Set the background color generically. Read more

Change the foreground color to black

Change the foreground color to black

Change the foreground color to red

Change the foreground color to red

Change the foreground color to green

Change the foreground color to green

Change the foreground color to yellow

Change the foreground color to yellow

Change the foreground color to blue

Change the foreground color to blue

Change the foreground color to magenta

Change the foreground color to magenta

Change the foreground color to purple

Change the foreground color to purple

Change the foreground color to cyan

Change the foreground color to cyan

Change the foreground color to white

Change the foreground color to white

Change the foreground color to bright black

Change the foreground color to bright black

Change the foreground color to bright red

Change the foreground color to bright red

Change the foreground color to bright green

Change the foreground color to bright green

Change the foreground color to bright yellow

Change the foreground color to bright yellow

Change the foreground color to bright blue

Change the foreground color to bright blue

Change the foreground color to bright magenta

Change the foreground color to bright magenta

Change the foreground color to bright purple

Change the foreground color to bright purple

Change the foreground color to bright cyan

Change the foreground color to bright cyan

Change the foreground color to bright white

Change the foreground color to bright white

Make the text bold

Make the text dim

Make the text italicized

Make the text italicized

Make the text blink

Make the text blink (but fast!)

Swap the foreground and background colors

Hide the text

Cross out the text

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more

Sets the foreground color to an RGB value.

Sets the background color to an RGB value.

Apply a runtime-determined style

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more