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
Attempt to read a structure from a given source, failing if an error occurs during deserialization or reading. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.