Struct concordium_std::ContractName [−][src]
pub struct ContractName<'a>(_);Expand description
A contract name. Expected format: “init_<contract_name>”.
Implementations
Create a new ContractName and check the format. Expected format: “init_<contract_name>”.
Create a new ContractName without checking the format. Expected format: “init_<contract_name>”.
Get contract name used on chain: “init_<contract_name>”.
Check whether the given string is a valid contract initialization function name. This is the case if and only if
- the string is no more than constants::MAX_FUNC_NAME_SIZE bytes
- the string starts with
init_ - the string does not contain a
. - all characters are ascii alphanumeric or punctuation characters.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ContractName<'a>
impl<'a> Send for ContractName<'a>
impl<'a> Sync for ContractName<'a>
impl<'a> Unpin for ContractName<'a>
impl<'a> UnwindSafe for ContractName<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
