Struct contract_metadata::ContractBuilder[][src]

pub struct ContractBuilder { /* fields omitted */ }
Expand description

Builder for contract metadata

Implementations

Set the contract name (required)

Set the contract version (required)

Set the contract version (required)

Set the contract description (optional)

Set the contract documentation url (optional)

Set the contract repository url (optional)

Set the contract homepage url (optional)

Set the contract license (optional)

Finalize construction of the ContractMetadata.

Returns an Err if any required fields missing.

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.

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.