stadar 0.1.26

Rust SDK for the stadar.net esports data API.
/*
 * Stadar Esports Data API
 *
 * Read-only esports data across all major competitive titles. Flat-tier pricing (no per-game gates), monthly subscriptions, 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 MatchParticipant {
    /// `team_<ulid>`, or null for a TBD slot (bracket feeder, \"Winner of M1\" placeholder) that has no team identity yet. 
    #[serde(rename = "team_id", skip_serializing_if = "Option::is_none")]
    pub team_id: Option<String>,
    /// URL-safe team slug. Null for TBD slots.
    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
    pub slug: Option<String>,
    /// Display name. Always populated — a TBD slot carries the upstream display text (\"TBD\", \"Winner of M1\", …) verbatim. 
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Short team name. Null for TBD slots and teams with no acronym.
    #[serde(rename = "acronym", skip_serializing_if = "Option::is_none")]
    pub acronym: Option<String>,
    #[serde(rename = "score", skip_serializing_if = "Option::is_none")]
    pub score: Option<i32>,
    #[serde(rename = "winner", skip_serializing_if = "Option::is_none")]
    pub winner: Option<bool>,
    /// Per-team / per-player stats. Gated to Hobbyist+ via `match_stats`.  Omitted entirely — not emitted as null — when the caller's tier is not entitled, AND when the match has not been played. A `scheduled` fixture never carries a stats block even if `has_detailed_stats` is true, because a synthesized 0-0 roll-up on an unplayed match is indistinguishable from a real one. 
    #[serde(rename = "stats", skip_serializing_if = "Option::is_none")]
    pub stats: Option<serde_json::Value>,
}

impl MatchParticipant {
    pub fn new() -> MatchParticipant {
        MatchParticipant {
            team_id: None,
            slug: None,
            name: None,
            acronym: None,
            score: None,
            winner: None,
            stats: None,
        }
    }
}