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