pub struct InsuranceProduct {
pub product_id: String,
pub product_type: InsuranceProductType,
pub name: String,
pub description: String,
pub base_rate_bps: u32,
pub min_coverage_micro_usd: i64,
pub max_coverage_micro_usd: i64,
pub default_deductible_micro_usd: i64,
pub period_secs: u64,
pub min_trust_tier: InsuranceTrustTier,
pub provider_id: String,
pub active: bool,
}Expand description
An insurance product definition offered on the marketplace.
Fields§
§product_id: StringUnique product identifier.
product_type: InsuranceProductTypeType of coverage.
name: StringHuman-readable product name.
description: StringDetailed description of coverage.
base_rate_bps: u32Base premium rate in basis points per coverage unit per period.
min_coverage_micro_usd: i64Minimum coverage in micro-USD.
max_coverage_micro_usd: i64Maximum coverage in micro-USD.
default_deductible_micro_usd: i64Default deductible in micro-USD.
period_secs: u64Coverage period in seconds.
min_trust_tier: InsuranceTrustTierMinimum trust tier required to purchase.
provider_id: StringProvider offering this product (network pool or external insurer).
active: boolWhether the product is currently available.
Trait Implementations§
Source§impl Clone for InsuranceProduct
impl Clone for InsuranceProduct
Source§fn clone(&self) -> InsuranceProduct
fn clone(&self) -> InsuranceProduct
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 InsuranceProduct
impl Debug for InsuranceProduct
Source§impl<'de> Deserialize<'de> for InsuranceProduct
impl<'de> Deserialize<'de> for InsuranceProduct
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 InsuranceProduct
impl RefUnwindSafe for InsuranceProduct
impl Send for InsuranceProduct
impl Sync for InsuranceProduct
impl Unpin for InsuranceProduct
impl UnsafeUnpin for InsuranceProduct
impl UnwindSafe for InsuranceProduct
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