pub struct Calendar {
pub kind: CalendarKind,
pub week_days: i64,
pub weekend_days: i64,
pub quarter_days: i64,
pub year_days: i64,
pub maint_period_days: i64,
}Expand description
The lengths a calendar gives the week, the quarter and the year, in days.
Fields§
§kind: CalendarKindWhich calendar this is.
week_days: i64Days in a week, the weekend included.
weekend_days: i64Days at the end of each week that are the weekend.
quarter_days: i64Days in a quarter, when rent is collected.
year_days: i64Days in a year.
maint_period_days: i64Days between maintenance bills.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Calendar
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnsafeUnpin for Calendar
impl UnwindSafe for Calendar
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