use crate::cmfutures::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetPremiumIndexV1RespItem {
#[serde(rename = "estimatedSettlePrice", skip_serializing_if = "Option::is_none")]
pub estimated_settle_price: Option<String>,
#[serde(rename = "indexPrice", skip_serializing_if = "Option::is_none")]
pub index_price: Option<String>,
#[serde(rename = "interestRate", skip_serializing_if = "Option::is_none")]
pub interest_rate: Option<String>,
#[serde(rename = "lastFundingRate", skip_serializing_if = "Option::is_none")]
pub last_funding_rate: Option<String>,
#[serde(rename = "markPrice", skip_serializing_if = "Option::is_none")]
pub mark_price: Option<String>,
#[serde(rename = "nextFundingTime", skip_serializing_if = "Option::is_none")]
pub next_funding_time: Option<i64>,
#[serde(rename = "pair", skip_serializing_if = "Option::is_none")]
pub pair: Option<String>,
#[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
pub symbol: Option<String>,
#[serde(rename = "time", skip_serializing_if = "Option::is_none")]
pub time: Option<i64>,
}
impl GetPremiumIndexV1RespItem {
pub fn new() -> GetPremiumIndexV1RespItem {
GetPremiumIndexV1RespItem {
estimated_settle_price: None,
index_price: None,
interest_rate: None,
last_funding_rate: None,
mark_price: None,
next_funding_time: None,
pair: None,
symbol: None,
time: None,
}
}
}