Skip to content

Commit

Permalink
Upgrade Rust SDK to spec 1.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Jul 21, 2024
1 parent 931c7c2 commit 0654958
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vrchatapi"
version = "1.17.6"
version = "1.18.0"
authors = ["[email protected]"]
description = "VRChat API Client for Rust"
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions docs/User.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** | |
Expand Down
5 changes: 4 additions & 1 deletion src/models/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ pub struct User {
pub location: Option<String>,
#[serde(rename = "note", skip_serializing_if = "Option::is_none")]
pub note: Option<String>,
#[serde(rename = "platform")]
pub platform: String,
#[serde(rename = "profilePicOverride")]
pub profile_pic_override: String,
#[serde(rename = "profilePicOverrideThumbnail")]
Expand Down Expand Up @@ -92,7 +94,7 @@ pub struct User {
}

impl User {
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 {
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 {
User {
allow_avatar_copying,
badges: None,
Expand All @@ -114,6 +116,7 @@ impl User {
last_platform,
location: None,
note: None,
platform,
profile_pic_override,
profile_pic_override_thumbnail,
pronouns,
Expand Down

0 comments on commit 0654958

Please sign in to comment.