Struct solana_sdk::inflation::Inflation [−][src]
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
impl Inflation[src]
pub fn new_disabled() -> Self[src]
pub fn new_fixed(validator: f64) -> Self[src]
pub fn pico() -> Self[src]
pub fn full() -> Self[src]
pub fn total(&self, year: f64) -> f64[src]
inflation rate at year
pub fn validator(&self, year: f64) -> f64[src]
portion of total that goes to validators
pub fn foundation(&self, year: f64) -> f64[src]
portion of total that goes to foundation
Trait Implementations
impl Clone for Inflation[src]
impl Copy for Inflation[src]
impl Debug for Inflation[src]
impl Default for Inflation[src]
impl<'de> Deserialize<'de> for Inflation[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<Inflation> for Inflation[src]
impl Serialize for Inflation[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for Inflation[src]
Auto Trait Implementations
impl RefUnwindSafe for Inflation
impl Send for Inflation
impl Sync for Inflation
impl Unpin for Inflation
impl UnwindSafe for Inflation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,