Skip to main content

azisaba_graph/models/
player_status.rs

1/*
2 * Azisaba Graph API
3 *
4 * An API for connecting and sharing data across the Azisaba Network.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PlayerStatus : The online status of the player.
15/// The online status of the player.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum PlayerStatus {
18    #[serde(rename = "online")]
19    Online,
20    #[serde(rename = "offline")]
21    Offline,
22
23}
24
25impl std::fmt::Display for PlayerStatus {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Online => write!(f, "online"),
29            Self::Offline => write!(f, "offline"),
30        }
31    }
32}
33
34impl Default for PlayerStatus {
35    fn default() -> PlayerStatus {
36        Self::Online
37    }
38}
39