Upgrade Rust SDK to spec 1.4.1

This commit is contained in:
Foorack
2021-10-08 12:05:31 +02:00
parent 760d14e93c
commit 0f5ba98772
117 changed files with 1221 additions and 836 deletions

View File

@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.3.0
* The version of the OpenAPI document: 1.4.1
* Contact: me@ruby.js.org
* Generated by: https://openapi-generator.tech
*/
@ -17,9 +17,9 @@ pub struct Instance {
#[serde(rename = "canRequestInvite")]
pub can_request_invite: bool,
#[serde(rename = "capacity")]
pub capacity: f32,
pub capacity: i32,
#[serde(rename = "clientNumber")]
pub client_number: String,
pub client_number: i32,
#[serde(rename = "full")]
pub full: bool,
#[serde(rename = "id")]
@ -29,7 +29,7 @@ pub struct Instance {
#[serde(rename = "location")]
pub location: String,
#[serde(rename = "n_users")]
pub n_users: f32,
pub n_users: i32,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "nonce", skip_serializing_if = "Option::is_none")]
@ -61,7 +61,7 @@ pub struct Instance {
}
impl Instance {
pub fn new(active: bool, can_request_invite: bool, capacity: f32, client_number: String, full: bool, id: String, instance_id: String, location: String, n_users: f32, 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: 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 {
Instance {
active,
can_request_invite,