vrchatapi 1.23.1-nightly.6

VRChat API Client for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::models;
use serde::{Deserialize, Serialize};

#[serde_with::serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebsocketInstanceQueueJoined {
    /// 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 = "position")]
    pub position: i32,
}

impl WebsocketInstanceQueueJoined {
    pub fn new(location: String, position: i32) -> WebsocketInstanceQueueJoined {
        WebsocketInstanceQueueJoined { location, position }
    }
}