[−][src]Struct web3::types::CallRequest
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.
Fields
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]
fn clone(&self) -> CallRequest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CallRequest
[src]
impl Default for CallRequest
[src]
fn default() -> CallRequest
[src]
impl<'de> Deserialize<'de> for CallRequest
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<CallRequest> for TransactionParameters
[src]
fn from(call: CallRequest) -> Self
[src]
impl Into<CallRequest> for TransactionParameters
[src]
fn into(self) -> CallRequest
[src]
impl PartialEq<CallRequest> for CallRequest
[src]
fn eq(&self, other: &CallRequest) -> bool
[src]
fn ne(&self, other: &CallRequest) -> bool
[src]
impl Serialize for CallRequest
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,