valorant_api_official 0.2.2

A library for interacting with the Official Valorant API.
Documentation
use serde::{Deserialize, Serialize};

#[derive(PartialEq, Eq, Hash, Serialize, Deserialize, Debug, Clone, Copy)]
pub enum Team {
    #[serde(rename = "Red")]
    RED,
    #[serde(rename = "Blue")]
    BLUE,
    #[serde(rename = "Neutral")]
    NEUTRAL,
}

#[derive(PartialEq, Eq, Hash, Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct DMTeam {
    team_id: String,
    won: bool,
    rounds_played: u32,
    rounds_won: u32,
    num_points: u32,
}