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