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