pub struct Inflation {
pub initial: f64,
pub terminal: f64,
pub taper: f64,
pub foundation: f64,
pub foundation_term: f64,
/* private fields */
}Fields§
§initial: f64Initial inflation percentage, from time=0
terminal: f64Terminal inflation percentage, to time=INF
taper: f64Rate per year, at which inflation is lowered until reaching terminal i.e. inflation(year) == MAX(terminal, initial*((1-taper)^year))
foundation: f64Percentage of total inflation allocated to the foundation
foundation_term: f64Duration of foundation pool inflation, in years
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inflation
impl<'de> Deserialize<'de> for Inflation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Inflation
impl StructuralPartialEq for Inflation
Auto Trait Implementations§
impl Freeze for Inflation
impl RefUnwindSafe for Inflation
impl Send for Inflation
impl Sync for Inflation
impl Unpin for Inflation
impl UnwindSafe for Inflation
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