[][src]Struct web3::types::CallRequest

pub struct CallRequest {
    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>,

Call contract request (eth_call / eth_estimateGas)

When using this for eth_estimateGas, all the fields are optional. However, for usage in eth_call the to field must be provided.


from: Option<Address>

Sender address (None for arbitrary address)

to: Option<Address>

To address (None allowed for eth_estimateGas)

gas: Option<U256>

Supplied gas (None for sensible default)

gas_price: Option<U256>

Gas price (None for sensible default)

value: Option<U256>

Transfered value (None for no transfer)

data: Option<Bytes>

Data (None for empty data)

Trait Implementations

impl Clone for CallRequest[src]

impl Debug for CallRequest[src]

impl Default for CallRequest[src]

impl<'de> Deserialize<'de> for CallRequest[src]

impl From<CallRequest> for TransactionParameters[src]

impl Into<CallRequest> for TransactionParameters[src]

impl PartialEq<CallRequest> for CallRequest[src]

impl Serialize for CallRequest[src]

impl StructuralPartialEq for CallRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for CallRequest

impl Send for CallRequest

impl Sync for CallRequest

impl Unpin for CallRequest

impl UnwindSafe for CallRequest

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

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