pub struct RepresentationName(/* private fields */);Implementations§
Source§impl RepresentationName
impl RepresentationName
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 RepresentationName
impl AsRef<str> for RepresentationName
Source§impl Clone for RepresentationName
impl Clone for RepresentationName
Source§fn clone(&self) -> RepresentationName
fn clone(&self) -> RepresentationName
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 RepresentationName
impl Debug for RepresentationName
Source§impl Display for RepresentationName
impl Display for RepresentationName
Source§impl FromStr for RepresentationName
impl FromStr for RepresentationName
Source§impl Hash for RepresentationName
impl Hash for RepresentationName
Source§impl Ord for RepresentationName
impl Ord for RepresentationName
Source§fn cmp(&self, other: &RepresentationName) -> Ordering
fn cmp(&self, other: &RepresentationName) -> 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 RepresentationName
impl PartialEq for RepresentationName
Source§impl PartialOrd for RepresentationName
impl PartialOrd for RepresentationName
Source§impl TryFrom<&str> for RepresentationName
impl TryFrom<&str> for RepresentationName
impl Eq for RepresentationName
impl StructuralPartialEq for RepresentationName
Auto Trait Implementations§
impl Freeze for RepresentationName
impl RefUnwindSafe for RepresentationName
impl Send for RepresentationName
impl Sync for RepresentationName
impl Unpin for RepresentationName
impl UnsafeUnpin for RepresentationName
impl UnwindSafe for RepresentationName
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