Struct ink_metadata::MessageSpec[][src]

pub struct MessageSpec<F: Form = MetaForm> { /* fields omitted */ }
Expand description

Describes a contract message.

Implementations

Creates a new message spec builder.

Creates a new message spec builder for a trait provided message.

Returns the name of the message and some optional prefixes.

In case of trait provided messages and constructors the prefix by convention in ink! is the name of the trait.

Returns the selector hash of the message.

Returns true if the message is allowed to mutate the contract state.

Returns true if the message is payable by the caller.

Returns the parameters of the message.

Returns the return type of the message.

Returns the message documentation.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The portable version of Self.

Convert self to the portable form by using the registry for caching.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. 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.