Struct tastyworks::common::ExpirationDate
source · [−]pub struct ExpirationDate(pub NaiveDate);
Tuple Fields
0: NaiveDate
Implementations
sourceimpl ExpirationDate
impl ExpirationDate
Trait Implementations
sourceimpl Clone for ExpirationDate
impl Clone for ExpirationDate
sourcefn clone(&self) -> ExpirationDate
fn clone(&self) -> ExpirationDate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExpirationDate
impl Debug for ExpirationDate
sourceimpl Default for ExpirationDate
impl Default for ExpirationDate
sourcefn default() -> ExpirationDate
fn default() -> ExpirationDate
Returns the “default value” for a type. Read more
sourceimpl Display for ExpirationDate
impl Display for ExpirationDate
sourceimpl From<TransactionExpiration> for ExpirationDate
impl From<TransactionExpiration> for ExpirationDate
sourcefn from(d: TransactionExpiration) -> ExpirationDate
fn from(d: TransactionExpiration) -> ExpirationDate
Converts to this type from the input type.
sourceimpl FromStr for ExpirationDate
impl FromStr for ExpirationDate
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourcefn 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 moresourceimpl Hash for ExpirationDate
impl Hash for ExpirationDate
sourceimpl Ord for ExpirationDate
impl Ord for ExpirationDate
sourcefn cmp(&self, other: &ExpirationDate) -> Ordering
fn cmp(&self, other: &ExpirationDate) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ExpirationDate> for ExpirationDate
impl PartialEq<ExpirationDate> for ExpirationDate
sourcefn eq(&self, other: &ExpirationDate) -> bool
fn eq(&self, other: &ExpirationDate) -> bool
sourceimpl PartialOrd<ExpirationDate> for ExpirationDate
impl PartialOrd<ExpirationDate> for ExpirationDate
sourcefn partial_cmp(&self, other: &ExpirationDate) -> Option<Ordering>
fn partial_cmp(&self, other: &ExpirationDate) -> Option<Ordering>
1.0.0 · sourcefn 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 StructuralEq for ExpirationDate
impl StructuralPartialEq for ExpirationDate
Auto Trait Implementations
impl RefUnwindSafe for ExpirationDate
impl Send for ExpirationDate
impl Sync for ExpirationDate
impl Unpin for ExpirationDate
impl UnwindSafe for ExpirationDate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
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 morefn 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).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.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.