mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
47 lines
989 B
Rust
47 lines
989 B
Rust
/*
|
|
* VRChat API Documentation
|
|
*
|
|
*
|
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
|
|
///
|
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
|
pub enum GroupMemberStatus {
|
|
#[serde(rename = "inactive")]
|
|
Inactive,
|
|
#[serde(rename = "member")]
|
|
Member,
|
|
#[serde(rename = "requested")]
|
|
Requested,
|
|
#[serde(rename = "invited")]
|
|
Invited,
|
|
#[serde(rename = "banned")]
|
|
Banned,
|
|
|
|
}
|
|
|
|
impl ToString for GroupMemberStatus {
|
|
fn to_string(&self) -> String {
|
|
match self {
|
|
Self::Inactive => String::from("inactive"),
|
|
Self::Member => String::from("member"),
|
|
Self::Requested => String::from("requested"),
|
|
Self::Invited => String::from("invited"),
|
|
Self::Banned => String::from("banned"),
|
|
}
|
|
}
|
|
}
|
|
|
|
impl Default for GroupMemberStatus {
|
|
fn default() -> GroupMemberStatus {
|
|
Self::Inactive
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|