vrchatapi 1.20.8-nightly.15

VRChat API Client for Rust
Documentation
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,
        }
    }
}