Struct ethcontract_common::artifact::truffle::TruffleLoader[][src]

pub struct TruffleLoader {
    pub origin: Option<String>,
    pub name: Option<String>,
}
Expand description

Loads truffle artifacts.

Fields

origin: Option<String>

Override for artifact’s origin.

If empty, origin will be derived automatically.

name: Option<String>

Override for contract’s name.

Truffle artifacts contain a single contract which may be unnamed.

Implementations

Creates a new truffle loader.

Creates a new truffle loader and sets an override for artifact’s origins.

Sets new override for artifact’s origin. See origin for more info.

Sets new override for artifact’s name. See name for more info.

Loads an artifact from a loaded JSON value.

Loads an artifact from bytes of JSON text.

Loads an artifact from string of JSON text.

Loads an artifact from a loaded JSON value.

Loads an artifact from disk.

Loads a contract from a loaded JSON value.

Loads a contract from bytes of JSON text.

Loads a contract from string of JSON text.

Loads a contract from a loaded JSON value.

Loads a contract from disk.

Serializes a single contract.

Trait Implementations

Returns the “default value” for a type. 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.

Performs the conversion.

Should always be Self

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.