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