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