pub struct Date {
pub year: u16,
pub month: u8,
pub day: u8,
}Expand description
A date in the GSI block (CD, RD), stored as YYMMDD.
Two-digit years 80-99 are 1980-1999 and 00-79 are 2000-2079.
§Example
use ebustl_parser::Date;
let date = Date { year: 2013, month: 10, day: 10 };
assert_eq!(10, date.month);Fields§
§year: u16The year with four digits, e.g. 1991
month: u8The month, 1-12
day: u8The day of the month, 1-31
Trait Implementations§
impl Copy for Date
impl Eq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnsafeUnpin for Date
impl UnwindSafe for Date
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