vrchatapi 1.20.8-nightly.11

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorldMetadata {
    /// WorldID be \"offline\" on User profiles if you are not friends with that user.
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "metadata")]
    pub metadata: serde_json::Value,
}

impl WorldMetadata {
    pub fn new(id: String, metadata: serde_json::Value) -> WorldMetadata {
        WorldMetadata { id, metadata }
    }
}