Upgrade Rust SDK to spec 1.7.4

This commit is contained in:
VRCCat
2022-09-08 22:36:49 +00:00
parent 2f9ff05bfe
commit ae61282074
12 changed files with 52 additions and 47 deletions

View File

@ -46,8 +46,10 @@ pub struct Instance {
pub platforms: Box<crate::models::InstancePlatforms>,
#[serde(rename = "region")]
pub region: crate::models::Region,
#[serde(rename = "shortName")]
pub short_name: String,
#[serde(rename = "secureName")]
pub secure_name: String,
#[serde(rename = "shortName", skip_serializing_if = "Option::is_none")]
pub short_name: Option<String>,
/// The tags array on Instances usually contain the language tags of the people in the instance.
#[serde(rename = "tags")]
pub tags: Vec<String>,
@ -69,7 +71,7 @@ pub struct Instance {
impl Instance {
/// * `hidden` field is only present if InstanceType is `hidden` aka \"Friends+\", and is instance creator. * `friends` field is only present if InstanceType is `friends` aka \"Friends\", and is instance creator. * `private` field is only present if InstanceType is `private` aka \"Invite\" or \"Invite+\", and is instance creator.
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: crate::models::Region, platforms: crate::models::InstancePlatforms, region: crate::models::Region, short_name: String, tags: Vec<String>, _type: crate::models::InstanceType, 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: crate::models::Region, platforms: crate::models::InstancePlatforms, region: crate::models::Region, secure_name: String, tags: Vec<String>, _type: crate::models::InstanceType, world_id: String) -> Instance {
Instance {
active,
can_request_invite,
@ -86,7 +88,8 @@ impl Instance {
photon_region,
platforms: Box::new(platforms),
region,
short_name,
secure_name,
short_name: None,
tags,
_type,
world_id,