pub struct EndpointName(/* private fields */);Implementations§
Source§impl EndpointName
impl EndpointName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for EndpointName
impl AsRef<str> for EndpointName
Source§impl Clone for EndpointName
impl Clone for EndpointName
Source§fn clone(&self) -> EndpointName
fn clone(&self) -> EndpointName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EndpointName
impl Debug for EndpointName
Source§impl Display for EndpointName
impl Display for EndpointName
Source§impl FromStr for EndpointName
impl FromStr for EndpointName
Source§impl Hash for EndpointName
impl Hash for EndpointName
Source§impl Ord for EndpointName
impl Ord for EndpointName
Source§fn cmp(&self, other: &EndpointName) -> Ordering
fn cmp(&self, other: &EndpointName) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for EndpointName
impl PartialEq for EndpointName
Source§fn eq(&self, other: &EndpointName) -> bool
fn eq(&self, other: &EndpointName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EndpointName
impl PartialOrd for EndpointName
Source§impl TryFrom<&str> for EndpointName
impl TryFrom<&str> for EndpointName
impl Eq for EndpointName
impl StructuralPartialEq for EndpointName
Auto Trait Implementations§
impl Freeze for EndpointName
impl RefUnwindSafe for EndpointName
impl Send for EndpointName
impl Sync for EndpointName
impl Unpin for EndpointName
impl UnsafeUnpin for EndpointName
impl UnwindSafe for EndpointName
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