From 06549589c05b6509657c78e803366175127f4fc5 Mon Sep 17 00:00:00 2001 From: VRCCat Date: Sun, 21 Jul 2024 01:21:15 +0000 Subject: [PATCH] Upgrade Rust SDK to spec 1.18.0 --- Cargo.toml | 2 +- docs/User.md | 1 + src/models/user.rs | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f7b8865..8010234 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vrchatapi" -version = "1.17.6" +version = "1.18.0" authors = ["vrchatapi.lpv0t@aries.fyi"] description = "VRChat API Client for Rust" license = "MIT" diff --git a/docs/User.md b/docs/User.md index 1661e3b..cde5215 100644 --- a/docs/User.md +++ b/docs/User.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **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`. | **location** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional] **note** | Option<**String**> | | [optional] +**platform** | **String** | | **profile_pic_override** | **String** | | **profile_pic_override_thumbnail** | **String** | | **pronouns** | **String** | | diff --git a/src/models/user.rs b/src/models/user.rs index 1c98cb8..d679ada 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -61,6 +61,8 @@ pub struct User { pub location: Option, #[serde(rename = "note", skip_serializing_if = "Option::is_none")] pub note: Option, + #[serde(rename = "platform")] + pub platform: String, #[serde(rename = "profilePicOverride")] pub profile_pic_override: String, #[serde(rename = "profilePicOverrideThumbnail")] @@ -92,7 +94,7 @@ pub struct User { } impl User { - pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, current_avatar_tags: Vec, 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, user_icon: String) -> User { + pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, current_avatar_tags: Vec, 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, user_icon: String) -> User { User { allow_avatar_copying, badges: None, @@ -114,6 +116,7 @@ impl User { last_platform, location: None, note: None, + platform, profile_pic_override, profile_pic_override_thumbnail, pronouns,