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