vrchatapi/models/
player_moderation_type.rs

1/*
2 * VRChat API Documentation
3 *
4 *
5 * Contact: vrchatapi.lpv0t@aries.fyi
6 * Generated by: https://openapi-generator.tech
7 */
8
9use crate::models;
10use serde::{Deserialize, Serialize};
11
12#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
13pub enum PlayerModerationType {
14    #[serde(rename = "mute")]
15    Mute,
16    #[serde(rename = "unmute")]
17    Unmute,
18    #[serde(rename = "block")]
19    Block,
20    #[serde(rename = "unblock")]
21    Unblock,
22    #[serde(rename = "interactOn")]
23    InteractOn,
24    #[serde(rename = "interactOff")]
25    InteractOff,
26}
27
28impl std::fmt::Display for PlayerModerationType {
29    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Self::Mute => write!(f, "mute"),
32            Self::Unmute => write!(f, "unmute"),
33            Self::Block => write!(f, "block"),
34            Self::Unblock => write!(f, "unblock"),
35            Self::InteractOn => write!(f, "interactOn"),
36            Self::InteractOff => write!(f, "interactOff"),
37        }
38    }
39}
40
41impl Default for PlayerModerationType {
42    fn default() -> PlayerModerationType {
43        Self::Mute
44    }
45}