vrchatapi/models/
moderate_user_request.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, Default, Debug, PartialEq, Serialize, Deserialize)]
13pub struct ModerateUserRequest {
14    /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.
15    #[serde(rename = "moderated")]
16    pub moderated: String,
17    #[serde(rename = "type")]
18    pub r#type: models::PlayerModerationType,
19}
20
21impl ModerateUserRequest {
22    pub fn new(moderated: String, r#type: models::PlayerModerationType) -> ModerateUserRequest {
23        ModerateUserRequest { moderated, r#type }
24    }
25}