pub struct CollectionName(/* private fields */);Implementations§
Source§impl CollectionName
impl CollectionName
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 CollectionName
impl AsRef<str> for CollectionName
Source§impl Clone for CollectionName
impl Clone for CollectionName
Source§fn clone(&self) -> CollectionName
fn clone(&self) -> CollectionName
Returns a duplicate of the value. Read more
1.0.0 · 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 CollectionName
impl Debug for CollectionName
Source§impl Display for CollectionName
impl Display for CollectionName
Source§impl FromStr for CollectionName
impl FromStr for CollectionName
Source§impl Hash for CollectionName
impl Hash for CollectionName
Source§impl Ord for CollectionName
impl Ord for CollectionName
Source§fn cmp(&self, other: &CollectionName) -> Ordering
fn cmp(&self, other: &CollectionName) -> Ordering
1.21.0 · 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 CollectionName
impl PartialEq for CollectionName
Source§impl PartialOrd for CollectionName
impl PartialOrd for CollectionName
Source§impl TryFrom<&str> for CollectionName
impl TryFrom<&str> for CollectionName
impl Eq for CollectionName
impl StructuralPartialEq for CollectionName
Auto Trait Implementations§
impl Freeze for CollectionName
impl RefUnwindSafe for CollectionName
impl Send for CollectionName
impl Sync for CollectionName
impl Unpin for CollectionName
impl UnsafeUnpin for CollectionName
impl UnwindSafe for CollectionName
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