vrchatapi 1.20.8-nightly.11

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

/// SubmitModerationReportRequestDetails : Relevant details specific to the type of the report. `fileId` is for the image file attached to an inventory item, such as an emoji. `holderId` is for the user who owns an inventory item, such as a emoji.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SubmitModerationReportRequestDetails {
    #[serde(rename = "fileId", skip_serializing_if = "Option::is_none")]
    pub file_id: Option<String>,
    /// 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.
    #[serde(rename = "holderId", skip_serializing_if = "Option::is_none")]
    pub holder_id: Option<String>,
    /// Relevant detail for reports about image content, such as emoji.
    #[serde(rename = "imageType", skip_serializing_if = "Option::is_none")]
    pub image_type: Option<String>,
    /// Relevant detail for reports taking place from within an instance.
    #[serde(rename = "instanceAgeGated", skip_serializing_if = "Option::is_none")]
    pub instance_age_gated: Option<bool>,
    /// Relevant detail for reports taking place from within an instance.
    #[serde(rename = "instanceType", skip_serializing_if = "Option::is_none")]
    pub instance_type: Option<String>,
    /// Relevant detail for reports about content that might not be tagged properly.
    #[serde(rename = "suggestedWarnings", skip_serializing_if = "Option::is_none")]
    pub suggested_warnings: Option<Vec<models::ContentFilter>>,
    /// Relevant detail for reports involving another user in the same instance world.
    #[serde(rename = "userInSameInstance", skip_serializing_if = "Option::is_none")]
    pub user_in_same_instance: Option<bool>,
}

impl SubmitModerationReportRequestDetails {
    /// Relevant details specific to the type of the report. `fileId` is for the image file attached to an inventory item, such as an emoji. `holderId` is for the user who owns an inventory item, such as a emoji.
    pub fn new() -> SubmitModerationReportRequestDetails {
        SubmitModerationReportRequestDetails {
            file_id: None,
            holder_id: None,
            image_type: None,
            instance_age_gated: None,
            instance_type: None,
            suggested_warnings: None,
            user_in_same_instance: None,
        }
    }
}