vrchatapi 1.20.8-nightly.15

VRChat API Client for Rust
Documentation
use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CalendarEventDiscoveryScope {
    #[serde(rename = "all")]
    All,
    #[serde(rename = "live")]
    Live,
    #[serde(rename = "upcoming")]
    Upcoming,
}

impl std::fmt::Display for CalendarEventDiscoveryScope {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::All => write!(f, "all"),
            Self::Live => write!(f, "live"),
            Self::Upcoming => write!(f, "upcoming"),
        }
    }
}

impl Default for CalendarEventDiscoveryScope {
    fn default() -> CalendarEventDiscoveryScope {
        Self::All
    }
}