use crate::rest::client::ServerResponse;
use crate::rest::enums::category::Category;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GetIndexPriceKlineParams {
pub category: Option<Category>, pub symbol: String, pub interval: String, pub start: Option<i64>, pub end: Option<i64>, pub limit: Option<i32>, }
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct IndexPriceKlineResult {
pub symbol: String, pub category: String,
pub list: Vec<Vec<String>>, }
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct IndexPriceKlineResponse(ServerResponse<IndexPriceKlineResult>);
impl IndexPriceKlineResponse {
pub fn into_inner(self) -> IndexPriceKlineResult {
self.0.result
}
pub fn into_response(self) -> ServerResponse<IndexPriceKlineResult> {
self.0
}
}