Skip to content

Commit 0654958

Browse files
committed
Upgrade Rust SDK to spec 1.18.0
1 parent 931c7c2 commit 0654958

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vrchatapi"
3-
version = "1.17.6"
3+
version = "1.18.0"
44
authors = ["vrchatapi.lpv0t@aries.fyi"]
55
description = "VRChat API Client for Rust"
66
license = "MIT"

docs/User.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
2424
**last_platform** | **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`. |
2525
**location** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
2626
**note** | Option<**String**> | | [optional]
27+
**platform** | **String** | |
2728
**profile_pic_override** | **String** | |
2829
**profile_pic_override_thumbnail** | **String** | |
2930
**pronouns** | **String** | |

src/models/user.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ pub struct User {
6161
pub location: Option<String>,
6262
#[serde(rename = "note", skip_serializing_if = "Option::is_none")]
6363
pub note: Option<String>,
64+
#[serde(rename = "platform")]
65+
pub platform: String,
6466
#[serde(rename = "profilePicOverride")]
6567
pub profile_pic_override: String,
6668
#[serde(rename = "profilePicOverrideThumbnail")]
@@ -92,7 +94,7 @@ pub struct User {
9294
}
9395

9496
impl User {
95-
pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, current_avatar_tags: Vec<String>, date_joined: String, developer_type: models::DeveloperType, display_name: String, friend_key: String, id: String, is_friend: bool, last_activity: String, last_login: String, last_platform: String, profile_pic_override: String, profile_pic_override_thumbnail: String, pronouns: String, state: models::UserState, status: models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String) -> User {
97+
pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, current_avatar_tags: Vec<String>, date_joined: String, developer_type: models::DeveloperType, display_name: String, friend_key: String, id: String, is_friend: bool, last_activity: String, last_login: String, last_platform: String, platform: String, profile_pic_override: String, profile_pic_override_thumbnail: String, pronouns: String, state: models::UserState, status: models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String) -> User {
9698
User {
9799
allow_avatar_copying,
98100
badges: None,
@@ -114,6 +116,7 @@ impl User {
114116
last_platform,
115117
location: None,
116118
note: None,
119+
platform,
117120
profile_pic_override,
118121
profile_pic_override_thumbnail,
119122
pronouns,

0 commit comments

Comments
 (0)