Struct tastyworks::common::ExpirationDate
source · pub struct ExpirationDate(pub NaiveDate);
Tuple Fields§
§0: NaiveDate
Implementations§
Trait Implementations§
source§impl Clone for ExpirationDate
impl Clone for ExpirationDate
source§fn clone(&self) -> ExpirationDate
fn clone(&self) -> ExpirationDate
Returns a copy 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 ExpirationDate
impl Debug for ExpirationDate
source§impl Default for ExpirationDate
impl Default for ExpirationDate
source§fn default() -> ExpirationDate
fn default() -> ExpirationDate
Returns the “default value” for a type. Read more
source§impl Display for ExpirationDate
impl Display for ExpirationDate
source§impl From<TransactionExpiration> for ExpirationDate
impl From<TransactionExpiration> for ExpirationDate
source§fn from(d: TransactionExpiration) -> ExpirationDate
fn from(d: TransactionExpiration) -> ExpirationDate
Converts to this type from the input type.
source§impl FromStr for ExpirationDate
impl FromStr for ExpirationDate
§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<ExpirationDate, <ExpirationDate as FromStr>::Err>
fn from_str(s: &str) -> Result<ExpirationDate, <ExpirationDate as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for ExpirationDate
impl Hash for ExpirationDate
source§impl Ord for ExpirationDate
impl Ord for ExpirationDate
source§fn cmp(&self, other: &ExpirationDate) -> Ordering
fn cmp(&self, other: &ExpirationDate) -> 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 ExpirationDate
impl PartialEq for ExpirationDate
source§fn eq(&self, other: &ExpirationDate) -> bool
fn eq(&self, other: &ExpirationDate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ExpirationDate
impl PartialOrd for ExpirationDate
source§fn partial_cmp(&self, other: &ExpirationDate) -> Option<Ordering>
fn partial_cmp(&self, other: &ExpirationDate) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ExpirationDate
impl Eq for ExpirationDate
impl StructuralPartialEq for ExpirationDate
Auto Trait Implementations§
impl Freeze for ExpirationDate
impl RefUnwindSafe for ExpirationDate
impl Send for ExpirationDate
impl Sync for ExpirationDate
impl Unpin for ExpirationDate
impl UnwindSafe for ExpirationDate
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.