pub struct ContractBuilder { /* private fields */ }
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.