mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Upgrade Rust SDK to spec 1.18.0
This commit is contained in:
@ -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"
|
||||
|
@ -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** | |
|
||||
|
@ -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")]
|
||||
@ -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,
|
||||
@ -114,6 +116,7 @@ impl User {
|
||||
last_platform,
|
||||
location: None,
|
||||
note: None,
|
||||
platform,
|
||||
profile_pic_override,
|
||||
profile_pic_override_thumbnail,
|
||||
pronouns,
|
||||
|
Reference in New Issue
Block a user