stadar 0.1.25

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};

/// Dota2LaneOutcomes : STRATZ-exclusive per-lane result. Each value is a `LaneOutcomeEnums` string passed through verbatim (`RADIANT_VICTORY`, `DIRE_VICTORY`, `TIE`); null when STRATZ could not classify the lane. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Dota2LaneOutcomes {
    #[serde(rename = "top", skip_serializing_if = "Option::is_none")]
    pub top: Option<Top>,
    #[serde(rename = "mid", skip_serializing_if = "Option::is_none")]
    pub mid: Option<Mid>,
    #[serde(rename = "bottom", skip_serializing_if = "Option::is_none")]
    pub bottom: Option<Bottom>,
}

impl Dota2LaneOutcomes {
    /// STRATZ-exclusive per-lane result. Each value is a `LaneOutcomeEnums` string passed through verbatim (`RADIANT_VICTORY`, `DIRE_VICTORY`, `TIE`); null when STRATZ could not classify the lane. 
    pub fn new() -> Dota2LaneOutcomes {
        Dota2LaneOutcomes {
            top: None,
            mid: None,
            bottom: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Top {
    #[serde(rename = "RADIANT_VICTORY")]
    RadiantVictory,
    #[serde(rename = "DIRE_VICTORY")]
    DireVictory,
    #[serde(rename = "TIE")]
    Tie,
}

impl Default for Top {
    fn default() -> Top {
        Self::RadiantVictory
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Mid {
    #[serde(rename = "RADIANT_VICTORY")]
    RadiantVictory,
    #[serde(rename = "DIRE_VICTORY")]
    DireVictory,
    #[serde(rename = "TIE")]
    Tie,
}

impl Default for Mid {
    fn default() -> Mid {
        Self::RadiantVictory
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Bottom {
    #[serde(rename = "RADIANT_VICTORY")]
    RadiantVictory,
    #[serde(rename = "DIRE_VICTORY")]
    DireVictory,
    #[serde(rename = "TIE")]
    Tie,
}

impl Default for Bottom {
    fn default() -> Bottom {
        Self::RadiantVictory
    }
}