use crate::prelude::*;
pub struct InsuranceGroup<'a> {
pub(crate) esi: &'a Esi,
}
#[derive(Debug, Clone, PartialEq, Deserialize)]
#[allow(missing_docs)]
pub struct InsuranceLevel {
pub cost: f64,
pub name: String,
pub payout: f64,
}
#[derive(Debug, Clone, PartialEq, Deserialize)]
#[allow(missing_docs)]
pub struct InsurancePrice {
pub levels: Vec<InsuranceLevel>,
pub type_id: i64,
}
impl InsuranceGroup<'_> {
api_get!(
get_prices,
"GetInsurancePrices",
RequestType::Public,
Vec<InsurancePrice>,
);
}