binance_sdk/w3w_prediction/rest_api/models/
query_positions_response_counts.rs1#![allow(unused_imports)]
15use crate::w3w_prediction::rest_api::models;
16use serde::{Deserialize, Serialize};
17
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct QueryPositionsResponseCounts {
20 #[serde(rename = "ongoingCount", skip_serializing_if = "Option::is_none")]
21 pub ongoing_count: Option<i32>,
22 #[serde(rename = "endedCount", skip_serializing_if = "Option::is_none")]
23 pub ended_count: Option<i32>,
24 #[serde(rename = "pendingClaimCount", skip_serializing_if = "Option::is_none")]
25 pub pending_claim_count: Option<i32>,
26}
27
28impl QueryPositionsResponseCounts {
29 #[must_use]
30 pub fn new() -> QueryPositionsResponseCounts {
31 QueryPositionsResponseCounts {
32 ongoing_count: None,
33 ended_count: None,
34 pending_claim_count: None,
35 }
36 }
37}