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<Self, NewReceiveNameError>
pub fn new(name: String) -> Result<Self, NewReceiveNameError>
Create a new name and check the format. See is_valid_entrypoint_name for the expected format.
sourcepub const fn new_unchecked(name: String) -> Self
pub const fn new_unchecked(name: String) -> Self
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§impl<'de> Deserialize<'de> for OwnedEntrypointName
impl<'de> Deserialize<'de> for OwnedEntrypointName
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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>) -> Self
fn from(epn: EntrypointName<'a>) -> Self
Converts to this type from the input type.
source§impl From<OwnedEntrypointName> for String
impl From<OwnedEntrypointName> for String
source§fn from(oen: OwnedEntrypointName) -> Self
fn from(oen: OwnedEntrypointName) -> Self
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 Serialize for OwnedEntrypointName
impl Serialize for OwnedEntrypointName
source§impl TryFrom<String> for OwnedEntrypointName
impl TryFrom<String> for OwnedEntrypointName
impl Eq for OwnedEntrypointName
impl StructuralPartialEq for OwnedEntrypointName
Auto Trait Implementations§
impl Freeze for OwnedEntrypointName
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