pub struct OwnedEntrypointName(_);
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
sourceimpl 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 fn new_unchecked(name: String) -> Self
pub 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.
pub fn as_entrypoint_name(&self) -> EntrypointName<'_>
Trait Implementations
sourceimpl Clone for OwnedEntrypointName
impl Clone for OwnedEntrypointName
sourcefn clone(&self) -> OwnedEntrypointName
fn clone(&self) -> OwnedEntrypointName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OwnedEntrypointName
impl Debug for OwnedEntrypointName
sourceimpl Deserial for OwnedEntrypointName
impl Deserial for OwnedEntrypointName
sourceimpl Display for OwnedEntrypointName
impl Display for OwnedEntrypointName
sourceimpl<'a> From<EntrypointName<'a>> for OwnedEntrypointName
impl<'a> From<EntrypointName<'a>> for OwnedEntrypointName
sourcefn from(epn: EntrypointName<'a>) -> Self
fn from(epn: EntrypointName<'a>) -> Self
Converts to this type from the input type.
sourceimpl From<OwnedEntrypointName> for String
impl From<OwnedEntrypointName> for String
sourcefn from(oen: OwnedEntrypointName) -> Self
fn from(oen: OwnedEntrypointName) -> Self
Converts to this type from the input type.
sourceimpl Hash for OwnedEntrypointName
impl Hash for OwnedEntrypointName
sourceimpl Ord for OwnedEntrypointName
impl Ord for OwnedEntrypointName
sourcefn cmp(&self, other: &OwnedEntrypointName) -> Ordering
fn cmp(&self, other: &OwnedEntrypointName) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<OwnedEntrypointName> for OwnedEntrypointName
impl PartialEq<OwnedEntrypointName> for OwnedEntrypointName
sourcefn 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 ==
. Read more
sourceimpl PartialOrd<OwnedEntrypointName> for OwnedEntrypointName
impl PartialOrd<OwnedEntrypointName> for OwnedEntrypointName
sourcefn partial_cmp(&self, other: &OwnedEntrypointName) -> Option<Ordering>
fn partial_cmp(&self, other: &OwnedEntrypointName) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Serial for OwnedEntrypointName
impl Serial for OwnedEntrypointName
sourceimpl TryFrom<String> for OwnedEntrypointName
impl TryFrom<String> for OwnedEntrypointName
impl Eq for OwnedEntrypointName
impl StructuralEq 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
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