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