Struct concordium_std::OwnedEntrypointName
source · pub struct OwnedEntrypointName(/* private fields */);
Expand description
An entrypoint name (owned version). Expected format:
“<func_name>”. Most methods on this type are available via the
as_entrypoint_name
and the
methods on the EntrypointName
type.
Implementations§
source§impl OwnedEntrypointName
impl OwnedEntrypointName
sourcepub fn new(name: String) -> Result<OwnedEntrypointName, NewReceiveNameError>
pub fn new(name: String) -> Result<OwnedEntrypointName, NewReceiveNameError>
Create a new name and check the format. See is_valid_entrypoint_name for the expected format.
sourcepub fn new_unchecked(name: String) -> OwnedEntrypointName
pub fn new_unchecked(name: String) -> OwnedEntrypointName
Create a new name. This does not check the format and is therefore unsafe. It is provided for convenience since sometimes it is statically clear that the format is satisfied.
sourcepub fn as_entrypoint_name(&self) -> EntrypointName<'_>
pub fn as_entrypoint_name(&self) -> EntrypointName<'_>
Convert to an EntrypointName
by reference.
Trait Implementations§
source§impl Clone for OwnedEntrypointName
impl Clone for OwnedEntrypointName
source§fn clone(&self) -> OwnedEntrypointName
fn clone(&self) -> OwnedEntrypointName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OwnedEntrypointName
impl Debug for OwnedEntrypointName
source§impl Deserial for OwnedEntrypointName
impl Deserial for OwnedEntrypointName
source§fn deserial<R>(source: &mut R) -> Result<OwnedEntrypointName, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<OwnedEntrypointName, ParseError>where
R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading.
source§impl Display for OwnedEntrypointName
impl Display for OwnedEntrypointName
source§impl<'a> From<EntrypointName<'a>> for OwnedEntrypointName
impl<'a> From<EntrypointName<'a>> for OwnedEntrypointName
source§fn from(epn: EntrypointName<'a>) -> OwnedEntrypointName
fn from(epn: EntrypointName<'a>) -> OwnedEntrypointName
Converts to this type from the input type.
source§impl From<OwnedEntrypointName> for String
impl From<OwnedEntrypointName> for String
source§fn from(oen: OwnedEntrypointName) -> String
fn from(oen: OwnedEntrypointName) -> String
Converts to this type from the input type.
source§impl Hash for OwnedEntrypointName
impl Hash for OwnedEntrypointName
source§impl Ord for OwnedEntrypointName
impl Ord for OwnedEntrypointName
source§fn cmp(&self, other: &OwnedEntrypointName) -> Ordering
fn cmp(&self, other: &OwnedEntrypointName) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq<&'a str> for OwnedEntrypointName
impl<'a> PartialEq<&'a str> for OwnedEntrypointName
source§impl PartialEq<str> for OwnedEntrypointName
impl PartialEq<str> for OwnedEntrypointName
source§impl PartialEq for OwnedEntrypointName
impl PartialEq for OwnedEntrypointName
source§fn eq(&self, other: &OwnedEntrypointName) -> bool
fn eq(&self, other: &OwnedEntrypointName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OwnedEntrypointName
impl PartialOrd for OwnedEntrypointName
source§fn partial_cmp(&self, other: &OwnedEntrypointName) -> Option<Ordering>
fn partial_cmp(&self, other: &OwnedEntrypointName) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SchemaType for OwnedEntrypointName
impl SchemaType for OwnedEntrypointName
source§impl Serial for OwnedEntrypointName
impl Serial for OwnedEntrypointName
source§impl TryFrom<String> for OwnedEntrypointName
impl TryFrom<String> for OwnedEntrypointName
§type Error = NewReceiveNameError
type Error = NewReceiveNameError
The type returned in the event of a conversion error.
source§fn try_from(
value: String
) -> Result<OwnedEntrypointName, <OwnedEntrypointName as TryFrom<String>>::Error>
fn try_from( value: String ) -> Result<OwnedEntrypointName, <OwnedEntrypointName as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for OwnedEntrypointName
impl StructuralPartialEq for OwnedEntrypointName
Auto Trait Implementations§
impl RefUnwindSafe for OwnedEntrypointName
impl Send for OwnedEntrypointName
impl Sync for OwnedEntrypointName
impl Unpin for OwnedEntrypointName
impl UnwindSafe for OwnedEntrypointName
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
source§fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
Attempt to read a structure from a given source and state, failing if
an error occurs during deserialization or reading.