Struct ethcontract::contract::MethodDefaults
source · pub struct MethodDefaults {
pub from: Option<Account>,
pub gas: Option<U256>,
pub gas_price: Option<GasPrice>,
}Expand description
Default options to be applied to MethodBuilder or ViewMethodBuilder.
Fields§
§from: Option<Account>Default sender of the transaction with the signing strategy to use.
gas: Option<U256>Default gas amount to use for transaction.
gas_price: Option<GasPrice>Default gas price to use for transaction.
Trait Implementations§
source§impl Clone for MethodDefaults
impl Clone for MethodDefaults
source§fn clone(&self) -> MethodDefaults
fn clone(&self) -> MethodDefaults
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MethodDefaults
impl Debug for MethodDefaults
source§impl Default for MethodDefaults
impl Default for MethodDefaults
source§fn default() -> MethodDefaults
fn default() -> MethodDefaults
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MethodDefaults
impl RefUnwindSafe for MethodDefaults
impl Send for MethodDefaults
impl Sync for MethodDefaults
impl Unpin for MethodDefaults
impl UnwindSafe for MethodDefaults
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more