pub struct Date {
pub year: u16,
pub month: u8,
pub day: u8,
}
Expand description
A parsed TOML date value
May be part of a Datetime
. Alone, Date
corresponds to a Local Date.
From the TOML v1.0.0 spec:
If you include only the date portion of an RFC 3339 formatted date-time, it will represent that entire day without any relation to an offset or timezone.
ld1 = 1979-05-27
Fields§
§year: u16
Year: four digits
month: u8
Month: 1 to 12
day: u8
Day: 1 to {28, 29, 30, 31} (based on month/year)
Trait Implementations§
source§impl PartialEq<Date> for Date
impl PartialEq<Date> for Date
impl Eq for Date
impl StructuralEq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin 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