pub struct InsuranceProvider {
pub provider_id: String,
pub name: String,
pub provider_type: ProviderType,
pub offered_products: Vec<InsuranceProductType>,
pub commission_rate_bps: u32,
pub active: bool,
pub api_endpoint: Option<String>,
pub registered_at: DateTime<Utc>,
}Expand description
An insurance provider registered on the marketplace.
Fields§
§provider_id: StringUnique provider identifier.
name: StringProvider name.
provider_type: ProviderTypeProvider type.
offered_products: Vec<InsuranceProductType>Product types this provider offers.
commission_rate_bps: u32Commission rate the marketplace charges this provider (basis points).
active: boolWhether the provider is currently active.
api_endpoint: Option<String>Provider’s external API endpoint (if applicable).
registered_at: DateTime<Utc>When the provider joined.
Trait Implementations§
Source§impl Clone for InsuranceProvider
impl Clone for InsuranceProvider
Source§fn clone(&self) -> InsuranceProvider
fn clone(&self) -> InsuranceProvider
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 InsuranceProvider
impl Debug for InsuranceProvider
Source§impl<'de> Deserialize<'de> for InsuranceProvider
impl<'de> Deserialize<'de> for InsuranceProvider
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 InsuranceProvider
impl RefUnwindSafe for InsuranceProvider
impl Send for InsuranceProvider
impl Sync for InsuranceProvider
impl Unpin for InsuranceProvider
impl UnsafeUnpin for InsuranceProvider
impl UnwindSafe for InsuranceProvider
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