stadar 0.1.6

Rust SDK for the stadar.net esports data API.
/*
 * 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 Game {
    #[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
    pub slug: Option<String>,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<Status>,
    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
    pub priority: Option<i32>,
    #[serde(rename = "first_supported_at", skip_serializing_if = "Option::is_none")]
    pub first_supported_at: Option<chrono::DateTime<chrono::FixedOffset>>,
    #[serde(rename = "catalog_kinds", skip_serializing_if = "Option::is_none")]
    pub catalog_kinds: Option<Vec<String>>,
    /// Per-ADR-0011 capability flags this game supports.
    #[serde(rename = "features", skip_serializing_if = "Option::is_none")]
    pub features: Option<Vec<String>>,
}

impl Game {
    pub fn new() -> Game {
        Game {
            slug: None,
            name: None,
            status: None,
            priority: None,
            first_supported_at: None,
            catalog_kinds: None,
            features: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Status {
    #[serde(rename = "live")]
    Live,
    #[serde(rename = "beta")]
    Beta,
    #[serde(rename = "coming_soon")]
    ComingSoon,
}

impl Default for Status {
    fn default() -> Status {
        Self::Live
    }
}