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