/*
* Stadar Esports Data API
*
* Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client's problem. Cursors are opaque base64 strings; treat them as such.
*
* The version of the OpenAPI document: v1
* Contact: api@stadar.net
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// Cs2PreviewExtras : Optional CS2-only fields. Present iff match.game == \"cs2\" AND the upstream source carried structured veto data. Absent otherwise — clients must tolerate missing keys.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Cs2PreviewExtras {
#[serde(rename = "map_veto_history", skip_serializing_if = "Option::is_none")]
pub map_veto_history: Option<Box<models::Cs2PreviewExtrasMapVetoHistory>>,
#[serde(rename = "map_win_rate", skip_serializing_if = "Option::is_none")]
pub map_win_rate: Option<std::collections::HashMap<String, models::Cs2PreviewExtrasMapWinRateValue>>,
}
impl Cs2PreviewExtras {
/// Optional CS2-only fields. Present iff match.game == \"cs2\" AND the upstream source carried structured veto data. Absent otherwise — clients must tolerate missing keys.
pub fn new() -> Cs2PreviewExtras {
Cs2PreviewExtras {
map_veto_history: None,
map_win_rate: None,
}
}
}