Struct concordium_std::OwnedContractName
source · [−]pub struct OwnedContractName(_);Expand description
A contract name (owned version). Expected format: “init_<contract_name>”.
Implementations
sourceimpl OwnedContractName
impl OwnedContractName
sourcepub fn new(name: String) -> Result<OwnedContractName, NewContractNameError>
pub fn new(name: String) -> Result<OwnedContractName, NewContractNameError>
Create a new OwnedContractName and check the format. Expected format: “init_<contract_name>”.
sourcepub fn new_unchecked(name: String) -> OwnedContractName
pub fn new_unchecked(name: String) -> OwnedContractName
Create a new OwnedContractName without checking the format. Expected format: “init_<contract_name>”.
sourcepub fn as_contract_name(&self) -> ContractName<'_>
pub fn as_contract_name(&self) -> ContractName<'_>
Convert to ContractName by reference.
Trait Implementations
sourceimpl Debug for OwnedContractName
impl Debug for OwnedContractName
sourceimpl Deserial for OwnedContractName
impl Deserial for OwnedContractName
sourcefn deserial<R>(source: &mut R) -> Result<OwnedContractName, ParseError> where
R: Read,
fn deserial<R>(source: &mut R) -> Result<OwnedContractName, ParseError> where
R: Read,
Attempt to read a structure from a given source, failing if an error occurs during deserialization or reading. Read more
sourceimpl Hash for OwnedContractName
impl Hash for OwnedContractName
sourceimpl PartialEq<OwnedContractName> for OwnedContractName
impl PartialEq<OwnedContractName> for OwnedContractName
sourcefn eq(&self, other: &OwnedContractName) -> bool
fn eq(&self, other: &OwnedContractName) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &OwnedContractName) -> bool
fn ne(&self, other: &OwnedContractName) -> bool
This method tests for !=.
sourceimpl SchemaType for OwnedContractName
impl SchemaType for OwnedContractName
sourceimpl Serial for OwnedContractName
impl Serial for OwnedContractName
impl Eq for OwnedContractName
impl StructuralEq for OwnedContractName
impl StructuralPartialEq for OwnedContractName
Auto Trait Implementations
impl RefUnwindSafe for OwnedContractName
impl Send for OwnedContractName
impl Sync for OwnedContractName
impl Unpin for OwnedContractName
impl UnwindSafe for OwnedContractName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more