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
/*
* 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 GroupInstance {
/// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance.
#[serde(rename = "instanceId")]
pub instance_id: String,
/// Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list.
#[serde(rename = "location")]
pub location: String,
#[serde(rename = "memberCount")]
pub member_count: i32,
#[serde(rename = "world")]
pub world: models::World,
}
impl GroupInstance {
pub fn new(
instance_id: String,
location: String,
member_count: i32,
world: models::World,
) -> GroupInstance {
GroupInstance {
instance_id,
location,
member_count,
world,
}
}
}