pub struct EndpointId(/* private fields */);Implementations§
Source§impl EndpointId
impl EndpointId
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 EndpointId
impl AsRef<str> for EndpointId
Source§impl Clone for EndpointId
impl Clone for EndpointId
Source§fn clone(&self) -> EndpointId
fn clone(&self) -> EndpointId
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 EndpointId
impl Debug for EndpointId
Source§impl Display for EndpointId
impl Display for EndpointId
Source§impl FromStr for EndpointId
impl FromStr for EndpointId
Source§impl Hash for EndpointId
impl Hash for EndpointId
Source§impl Ord for EndpointId
impl Ord for EndpointId
Source§fn cmp(&self, other: &EndpointId) -> Ordering
fn cmp(&self, other: &EndpointId) -> 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 EndpointId
impl PartialEq for EndpointId
Source§fn eq(&self, other: &EndpointId) -> bool
fn eq(&self, other: &EndpointId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EndpointId
impl PartialOrd for EndpointId
Source§impl TryFrom<&str> for EndpointId
impl TryFrom<&str> for EndpointId
impl Eq for EndpointId
impl StructuralPartialEq for EndpointId
Auto Trait Implementations§
impl Freeze for EndpointId
impl RefUnwindSafe for EndpointId
impl Send for EndpointId
impl Sync for EndpointId
impl Unpin for EndpointId
impl UnsafeUnpin for EndpointId
impl UnwindSafe for EndpointId
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