pub struct KickbackSchemeConfig {
pub probability: f64,
pub inflation_min: f64,
pub inflation_max: f64,
pub kickback_percent: f64,
pub setup_months: u32,
pub operation_months: u32,
}Expand description
Vendor kickback scheme configuration.
Fields§
§probability: f64Probability of starting a kickback scheme.
inflation_min: f64Minimum price inflation percentage.
inflation_max: f64Maximum price inflation percentage.
kickback_percent: f64Kickback percentage (of inflation).
setup_months: u32Setup duration in months.
operation_months: u32Main operation duration in months.
Trait Implementations§
Source§impl Clone for KickbackSchemeConfig
impl Clone for KickbackSchemeConfig
Source§fn clone(&self) -> KickbackSchemeConfig
fn clone(&self) -> KickbackSchemeConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 KickbackSchemeConfig
impl Debug for KickbackSchemeConfig
Source§impl Default for KickbackSchemeConfig
impl Default for KickbackSchemeConfig
Source§impl<'de> Deserialize<'de> for KickbackSchemeConfig
impl<'de> Deserialize<'de> for KickbackSchemeConfig
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
Auto Trait Implementations§
impl Freeze for KickbackSchemeConfig
impl RefUnwindSafe for KickbackSchemeConfig
impl Send for KickbackSchemeConfig
impl Sync for KickbackSchemeConfig
impl Unpin for KickbackSchemeConfig
impl UnwindSafe for KickbackSchemeConfig
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