Upgrade Rust SDK to spec 1.4.2

This commit is contained in:
Foorack
2021-10-08 12:38:13 +02:00
parent f1b47f29ec
commit 548324ab82
83 changed files with 10 additions and 88 deletions

View File

@ -2,7 +2,6 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.4.1
* Contact: me@ruby.js.org
* Generated by: https://openapi-generator.tech
*/
@ -19,7 +18,7 @@ pub struct Instance {
#[serde(rename = "capacity")]
pub capacity: i32,
#[serde(rename = "clientNumber")]
pub client_number: i32,
pub client_number: String,
#[serde(rename = "full")]
pub full: bool,
#[serde(rename = "id")]
@ -34,8 +33,8 @@ pub struct Instance {
pub name: String,
#[serde(rename = "nonce", skip_serializing_if = "Option::is_none")]
pub nonce: Option<String>,
#[serde(rename = "ownerId")]
pub owner_id: String,
#[serde(rename = "ownerId", skip_serializing_if = "Option::is_none")]
pub owner_id: Option<String>,
#[serde(rename = "permanent")]
pub permanent: bool,
#[serde(rename = "photonRegion")]
@ -61,7 +60,7 @@ pub struct Instance {
}
impl Instance {
pub fn new(active: bool, can_request_invite: bool, capacity: i32, client_number: i32, full: bool, id: String, instance_id: String, location: String, n_users: i32, name: String, owner_id: String, permanent: bool, photon_region: String, platforms: crate::models::InstancePlatforms, region: String, short_name: String, tags: Vec<String>, _type: String, world_id: String) -> Instance {
pub fn new(active: bool, can_request_invite: bool, capacity: i32, client_number: String, full: bool, id: String, instance_id: String, location: String, n_users: i32, name: String, permanent: bool, photon_region: String, platforms: crate::models::InstancePlatforms, region: String, short_name: String, tags: Vec<String>, _type: String, world_id: String) -> Instance {
Instance {
active,
can_request_invite,
@ -74,7 +73,7 @@ impl Instance {
n_users,
name,
nonce: None,
owner_id,
owner_id: None,
permanent,
photon_region,
platforms: Box::new(platforms),