Struct concordium_std::OwnedReceiveName [−][src]
pub struct OwnedReceiveName(_);
Expand description
A receive name (owned version). Expected format: “<contract_name>.<func_name>”.
Implementations
impl OwnedReceiveName
[src]
impl OwnedReceiveName
[src]pub fn new(name: String) -> Result<OwnedReceiveName, NewReceiveNameError>
[src]
pub fn new(name: String) -> Result<OwnedReceiveName, NewReceiveNameError>
[src]Create a new OwnedReceiveName and check the format. Expected format: “<contract_name>.<func_name>”.
pub fn new_unchecked(name: String) -> OwnedReceiveName
[src]
pub fn new_unchecked(name: String) -> OwnedReceiveName
[src]Create a new OwnedReceiveName without checking the format. Expected format: “<contract_name>.<func_name>”.
pub fn get_chain_name(&self) -> &String
[src]
pub fn get_chain_name(&self) -> &String
[src]Get receive name used on chain: “<contract_name>.<func_name>”.
pub fn contract_name(&self) -> Option<&str>
[src]
pub fn contract_name(&self) -> Option<&str>
[src]Try to extract the contract name by splitting at the first dot.
pub fn func_name(&self) -> Option<&str>
[src]
pub fn func_name(&self) -> Option<&str>
[src]Try to extract the func name by splitting at the first dot.
pub fn as_ref(&self) -> ReceiveName<'_>
[src]
pub fn as_ref(&self) -> ReceiveName<'_>
[src]Convert to ReceiveName by reference.
Trait Implementations
impl Clone for OwnedReceiveName
[src]
impl Clone for OwnedReceiveName
[src]pub fn clone(&self) -> OwnedReceiveName
[src]
pub fn clone(&self) -> OwnedReceiveName
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for OwnedReceiveName
[src]
impl Debug for OwnedReceiveName
[src]impl Deserial for OwnedReceiveName
[src]
impl Deserial for OwnedReceiveName
[src]pub fn deserial<R>(source: &mut R) -> Result<OwnedReceiveName, ParseError> where
R: Read,
[src]
pub fn deserial<R>(source: &mut R) -> Result<OwnedReceiveName, ParseError> where
R: Read,
[src]Attempt to read a structure from a given source, failing if an error occurs during deserialization or reading. Read more
impl PartialEq<OwnedReceiveName> for OwnedReceiveName
[src]
impl PartialEq<OwnedReceiveName> for OwnedReceiveName
[src]pub fn eq(&self, other: &OwnedReceiveName) -> bool
[src]
pub fn eq(&self, other: &OwnedReceiveName) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &OwnedReceiveName) -> bool
[src]
pub fn ne(&self, other: &OwnedReceiveName) -> bool
[src]This method tests for !=
.
impl SchemaType for OwnedReceiveName
[src]
impl SchemaType for OwnedReceiveName
[src]impl Serial for OwnedReceiveName
[src]
impl Serial for OwnedReceiveName
[src]impl Eq for OwnedReceiveName
[src]
impl StructuralEq for OwnedReceiveName
[src]
impl StructuralPartialEq for OwnedReceiveName
[src]
Auto Trait Implementations
impl RefUnwindSafe for OwnedReceiveName
impl Send for OwnedReceiveName
impl Sync for OwnedReceiveName
impl Unpin for OwnedReceiveName
impl UnwindSafe for OwnedReceiveName
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<A> Serialize for A where
A: Deserial + Serial,
[src]
A: Deserial + Serial,