vrchatapi 1.20.8-nightly.15

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

/// AgreementCode : The type of agreement.
/// The type of agreement.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AgreementCode {
    #[serde(rename = "content.copyright.owned")]
    ContentCopyrightOwned,
}

impl std::fmt::Display for AgreementCode {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::ContentCopyrightOwned => write!(f, "content.copyright.owned"),
        }
    }
}

impl Default for AgreementCode {
    fn default() -> AgreementCode {
        Self::ContentCopyrightOwned
    }
}