pub struct HolidayInfo {
pub date: NaiveDate,
pub name: &'static str,
pub is_holiday: bool,
pub is_confirmed: bool,
}Expand description
Information about a holiday or adjusted work day.
Fields§
§date: NaiveDate§name: &'static strHoliday name. Contains [待确认] for 2027 estimated entries.
is_holiday: booltrue = statutory holiday (day off), false = adjusted work day (補班).
is_confirmed: booltrue = officially confirmed by State Council, false = estimated.
Trait Implementations§
Source§impl Clone for HolidayInfo
impl Clone for HolidayInfo
Source§fn clone(&self) -> HolidayInfo
fn clone(&self) -> HolidayInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HolidayInfo
impl RefUnwindSafe for HolidayInfo
impl Send for HolidayInfo
impl Sync for HolidayInfo
impl Unpin for HolidayInfo
impl UnsafeUnpin for HolidayInfo
impl UnwindSafe for HolidayInfo
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