Struct ethcontract::contract::DeployBuilder[][src]

#[must_use = "deploy builers do nothing unless you `.deploy()` them"]
pub struct DeployBuilder<T, I> where
    T: Transport,
    I: Deploy<T>, 
{ /* fields omitted */ }
Expand description

Builder for specifying options for deploying a linked contract.

Implementations

Create a new deploy builder from a web3 provider, artifact data and deployment (constructor) parameters.

Specify the signing method to use for the transaction, if not specified the the transaction will be locally signed with the default user.

Secify amount of gas to use, if not specified then a gas estimate will be used.

Specify the gas price to use, if not specified then the estimated gas price will be used.

Specify what how much ETH to transfer with the transaction, if not specified then no ETH will be sent.

Specify the nonce for the transation, if not specified will use the current transaction count for the signing account.

Specify the number of confirmations to wait for when confirming the transaction, if not specified will wait for the transaction to be mined without any extra confirmations.

Extract inner TransactionBuilder from this DeployBuilder. This exposes TransactionBuilder only APIs.

Sign (if required) and execute the transaction. Returns the transaction hash that can be used to retrieve transaction information.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.