/*
* 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};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MatchPreview {
#[serde(rename = "match")]
pub r#match: Box<models::Match>,
#[serde(rename = "form")]
pub form: Box<models::MatchPreviewForm>,
#[serde(rename = "head_to_head")]
pub head_to_head: Box<models::HeadToHead>,
#[serde(rename = "last_5")]
pub last_5: Box<models::MatchPreviewLast5>,
#[serde(rename = "cs2_specific", skip_serializing_if = "Option::is_none")]
pub cs2_specific: Option<Box<models::Cs2PreviewExtras>>,
}
impl MatchPreview {
pub fn new(r#match: models::Match, form: models::MatchPreviewForm, head_to_head: models::HeadToHead, last_5: models::MatchPreviewLast5) -> MatchPreview {
MatchPreview {
r#match: Box::new(r#match),
form: Box::new(form),
head_to_head: Box::new(head_to_head),
last_5: Box::new(last_5),
cs2_specific: None,
}
}
}