[][src]Struct ethcontract::transaction::estimate_gas::EstimateGasRequest

pub struct EstimateGasRequest {
    pub from: Option<Address>,
    pub to: Option<Address>,
    pub gas: Option<U256>,
    pub gas_price: Option<U256>,
    pub value: Option<U256>,
    pub data: Option<Bytes>,
}

Transaction parameters used for estimating gas.

Note that this is similar to web3::types::CallRequest with the notable exception that it allows for to to be None for estimating gas on contract deployments.

Fields

from: Option<Address>

The address of the sender

to: Option<Address>

The to address, use None for contract deployment.

gas: Option<U256>

The maximum gas supplied to the transaction when estimating gas or None for unlimited.

gas_price: Option<U256>

The gas price for the transaction or None for the node's median gas price.

value: Option<U256>

The transfered value in wei or None for no value.

data: Option<Bytes>

The data or None for empty data.

Trait Implementations

impl Clone for EstimateGasRequest[src]

impl Debug for EstimateGasRequest[src]

impl Serialize for EstimateGasRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.

impl<T> Typeable for T where
    T: Any

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