pub struct ContractConfig {
pub min_duration_months: u32,
pub max_duration_months: u32,
pub auto_renewal_rate: f64,
pub amendment_rate: f64,
pub type_distribution: ContractTypeDistribution,
}Expand description
Contract configuration.
Fields§
§min_duration_months: u32Minimum contract duration in months
max_duration_months: u32Maximum contract duration in months
auto_renewal_rate: f64Auto-renewal rate
amendment_rate: f64Amendment rate (% of contracts with at least one amendment)
type_distribution: ContractTypeDistributionDistribution of contract types
Trait Implementations§
Source§impl Clone for ContractConfig
impl Clone for ContractConfig
Source§fn clone(&self) -> ContractConfig
fn clone(&self) -> ContractConfig
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 ContractConfig
impl Debug for ContractConfig
Source§impl Default for ContractConfig
impl Default for ContractConfig
Source§impl<'de> Deserialize<'de> for ContractConfig
impl<'de> Deserialize<'de> for ContractConfig
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 ContractConfig
impl RefUnwindSafe for ContractConfig
impl Send for ContractConfig
impl Sync for ContractConfig
impl Unpin for ContractConfig
impl UnsafeUnpin for ContractConfig
impl UnwindSafe for ContractConfig
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