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