1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* VRChat API Documentation
*
*
* Contact: vrchatapi.lpv0t@aries.fyi
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DynamicContentRow {
#[serde(rename = "index", skip_serializing_if = "Option::is_none")]
pub index: Option<i32>,
#[serde(rename = "name")]
pub name: String,
/// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
#[serde(rename = "platform")]
pub platform: String,
#[serde(rename = "sortHeading")]
pub sort_heading: String,
#[serde(rename = "sortOrder")]
pub sort_order: String,
#[serde(rename = "sortOwnership")]
pub sort_ownership: String,
/// Tags are a way to grant various access, assign restrictions or other kinds of metadata to various to objects such as worlds, users and avatars. System tags starting with `system_` are granted automatically by the system, while admin tags with `admin_` are granted manually. More prefixes such as `language_ ` (to indicate that a player can speak the tagged language), and `author_tag_` (provided by a world author for search and sorting) exist as well.
#[serde(rename = "tag", skip_serializing_if = "Option::is_none")]
pub tag: Option<String>,
/// Type is not present if it is a world.
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub r#type: Option<String>,
}
impl DynamicContentRow {
pub fn new(
name: String,
platform: String,
sort_heading: String,
sort_order: String,
sort_ownership: String,
) -> DynamicContentRow {
DynamicContentRow {
index: None,
name,
platform,
sort_heading,
sort_order,
sort_ownership,
tag: None,
r#type: None,
}
}
}