pub struct TwoDigitYears {
pub day: String,
pub month: String,
pub year: String,
}Expand description
The .aba file uses non-standard date format of DDMMYY.
Caveat is that the leap year validation is capped at year 9999.
This is a workaround that uses random two digits to make up a 4-digit year.
Please refer to <https://www.ietf.org/rfc/rfc3339.txt> for more info
Fields§
§day: String§month: String§year: StringImplementations§
Source§impl TwoDigitYears
impl TwoDigitYears
Trait Implementations§
Source§impl Clone for TwoDigitYears
impl Clone for TwoDigitYears
Source§fn clone(&self) -> TwoDigitYears
fn clone(&self) -> TwoDigitYears
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 TwoDigitYears
impl Debug for TwoDigitYears
Source§impl Default for TwoDigitYears
impl Default for TwoDigitYears
Source§fn default() -> TwoDigitYears
fn default() -> TwoDigitYears
Returns the “default value” for a type. Read more
Source§impl Display for TwoDigitYears
impl Display for TwoDigitYears
Source§impl Hash for TwoDigitYears
impl Hash for TwoDigitYears
Source§impl Ord for TwoDigitYears
impl Ord for TwoDigitYears
Source§fn cmp(&self, other: &TwoDigitYears) -> Ordering
fn cmp(&self, other: &TwoDigitYears) -> 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 TwoDigitYears
impl PartialEq for TwoDigitYears
Source§impl PartialOrd for TwoDigitYears
impl PartialOrd for TwoDigitYears
impl Eq for TwoDigitYears
impl StructuralPartialEq for TwoDigitYears
Auto Trait Implementations§
impl Freeze for TwoDigitYears
impl RefUnwindSafe for TwoDigitYears
impl Send for TwoDigitYears
impl Sync for TwoDigitYears
impl Unpin for TwoDigitYears
impl UnwindSafe for TwoDigitYears
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