mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-23 16:08:06 +00:00
Upgrade Rust SDK to spec 1.6.0
This commit is contained in:
@ -27,21 +27,27 @@ pub struct User {
|
||||
pub date_joined: String,
|
||||
#[serde(rename = "developerType")]
|
||||
pub developer_type: crate::models::DeveloperType,
|
||||
/// A users visual display name. This is what shows up in-game, and can different from their `username`. Changing display name is restricted to a cooldown period.
|
||||
#[serde(rename = "displayName")]
|
||||
pub display_name: String,
|
||||
#[serde(rename = "friendKey")]
|
||||
pub friend_key: String,
|
||||
/// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.
|
||||
#[serde(rename = "id")]
|
||||
pub id: String,
|
||||
/// InstanceID be \"offline\" on User profiles if you are not friends with that user.
|
||||
#[serde(rename = "instanceId", skip_serializing_if = "Option::is_none")]
|
||||
pub instance_id: Option<String>,
|
||||
/// Either their `friendKey`, or empty string if you are not friends. Unknown usage.
|
||||
#[serde(rename = "isFriend")]
|
||||
pub is_friend: bool,
|
||||
/// Either a date-time or empty string.
|
||||
#[serde(rename = "last_login")]
|
||||
pub last_login: String,
|
||||
/// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
|
||||
#[serde(rename = "last_platform")]
|
||||
pub last_platform: String,
|
||||
/// WorldID be \"offline\" on User profiles if you are not friends with that user.
|
||||
#[serde(rename = "location", skip_serializing_if = "Option::is_none")]
|
||||
pub location: Option<String>,
|
||||
#[serde(rename = "profilePicOverride")]
|
||||
@ -56,8 +62,10 @@ pub struct User {
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "userIcon")]
|
||||
pub user_icon: String,
|
||||
/// A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.
|
||||
#[serde(rename = "username")]
|
||||
pub username: String,
|
||||
/// WorldID be \"offline\" on User profiles if you are not friends with that user.
|
||||
#[serde(rename = "worldId", skip_serializing_if = "Option::is_none")]
|
||||
pub world_id: Option<String>,
|
||||
}
|
||||
|
Reference in New Issue
Block a user