Struct concordium_std::OwnedContractName[][src]

pub struct OwnedContractName(_);
Expand description

A contract name (owned version). Expected format: “init_<contract_name>”.

Implementations

Create a new OwnedContractName and check the format. Expected format: “init_<contract_name>”.

Create a new OwnedContractName without checking the format. Expected format: “init_<contract_name>”.

Get contract name used on chain: “init_<contract_name>”.

Try to extract the contract name by removing the “init_” prefix.

Convert to ContractName by reference.

Trait Implementations

Formats the value using the given formatter. Read more

Attempt to read a structure from a given source, failing if an error occurs during deserialization or reading. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=.

Attempt to write the structure into the provided writer, failing if only part of the structure could be written. 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.