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