pub struct CalendarEntry {
pub key: &'static str,
pub quarter_days: i64,
pub maintenance_period_days: i64,
pub maintenance_scale: f64,
pub quarterly_rent_scale: f64,
}Expand description
One calendar a tower can run and how it scales the quoted figures.
Fields§
§key: &'static strcanon or realWorld, as a save names it.
quarter_days: i64Days per quarter, when quarterly rent lands.
maintenance_period_days: i64Days between maintenance charges (and monthly rent collections).
maintenance_scale: f64What a ...Monthly figure and a monthly rent are multiplied by on
each maintenance period.
quarterly_rent_scale: f64What a quarterly rent is multiplied by when the quarter lands.
Trait Implementations§
Source§impl Clone for CalendarEntry
impl Clone for CalendarEntry
Source§fn clone(&self) -> CalendarEntry
fn clone(&self) -> CalendarEntry
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 moreSource§impl Debug for CalendarEntry
impl Debug for CalendarEntry
Source§impl PartialEq for CalendarEntry
impl PartialEq for CalendarEntry
Source§fn eq(&self, other: &CalendarEntry) -> bool
fn eq(&self, other: &CalendarEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CalendarEntry
impl Serialize for CalendarEntry
impl StructuralPartialEq for CalendarEntry
Auto Trait Implementations§
impl Freeze for CalendarEntry
impl RefUnwindSafe for CalendarEntry
impl Send for CalendarEntry
impl Sync for CalendarEntry
impl Unpin for CalendarEntry
impl UnsafeUnpin for CalendarEntry
impl UnwindSafe for CalendarEntry
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