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