Upgrade Rust SDK to spec 1.6.10

This commit is contained in:
VRCCat
2022-04-09 04:16:38 +00:00
parent 0f3d9e7a52
commit b77ed0c86b
4 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "vrchatapi" name = "vrchatapi"
version = "1.6.9" version = "1.6.10"
authors = ["OpenAPI Generator team and contributors"] authors = ["OpenAPI Generator team and contributors"]
license = "MIT" license = "MIT"
edition = "2018" edition = "2018"

View File

@ -47,6 +47,7 @@ Name | Type | Description | Notes
**steam_id** | **String** | | **steam_id** | **String** | |
**tags** | **Vec<String>** | | **tags** | **Vec<String>** | |
**two_factor_auth_enabled** | **bool** | | **two_factor_auth_enabled** | **bool** | |
**two_factor_auth_enabled_date** | **String** | |
**unsubscribe** | **bool** | | **unsubscribe** | **bool** | |
**user_icon** | **String** | | **user_icon** | **String** | |
**username** | **String** | | **username** | **String** | |

View File

@ -103,6 +103,8 @@ pub struct CurrentUser {
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "twoFactorAuthEnabled")] #[serde(rename = "twoFactorAuthEnabled")]
pub two_factor_auth_enabled: bool, pub two_factor_auth_enabled: bool,
#[serde(rename = "twoFactorAuthEnabledDate")]
pub two_factor_auth_enabled_date: String,
#[serde(rename = "unsubscribe")] #[serde(rename = "unsubscribe")]
pub unsubscribe: bool, pub unsubscribe: bool,
#[serde(rename = "userIcon")] #[serde(rename = "userIcon")]
@ -112,7 +114,7 @@ pub struct CurrentUser {
} }
impl CurrentUser { impl CurrentUser {
pub fn new(accepted_tos_version: i32, allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar: String, current_avatar_asset_url: String, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, email_verified: bool, friend_group_names: Vec<String>, friend_key: String, friends: Vec<String>, has_birthday: bool, has_email: bool, has_logged_in_from_client: bool, has_pending_email: bool, home_location: String, id: String, is_friend: bool, last_login: String, last_platform: String, obfuscated_email: String, obfuscated_pending_email: String, oculus_id: String, past_display_names: Vec<crate::models::PastDisplayName>, profile_pic_override: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, status_first_time: bool, status_history: Vec<String>, steam_details: serde_json::Value, steam_id: String, tags: Vec<String>, two_factor_auth_enabled: bool, unsubscribe: bool, user_icon: String, username: String) -> CurrentUser { pub fn new(accepted_tos_version: i32, allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar: String, current_avatar_asset_url: String, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, email_verified: bool, friend_group_names: Vec<String>, friend_key: String, friends: Vec<String>, has_birthday: bool, has_email: bool, has_logged_in_from_client: bool, has_pending_email: bool, home_location: String, id: String, is_friend: bool, last_login: String, last_platform: String, obfuscated_email: String, obfuscated_pending_email: String, oculus_id: String, past_display_names: Vec<crate::models::PastDisplayName>, profile_pic_override: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, status_first_time: bool, status_history: Vec<String>, steam_details: serde_json::Value, steam_id: String, tags: Vec<String>, two_factor_auth_enabled: bool, two_factor_auth_enabled_date: String, unsubscribe: bool, user_icon: String, username: String) -> CurrentUser {
CurrentUser { CurrentUser {
accepted_tos_version, accepted_tos_version,
account_deletion_date: None, account_deletion_date: None,
@ -157,6 +159,7 @@ impl CurrentUser {
steam_id, steam_id,
tags, tags,
two_factor_auth_enabled, two_factor_auth_enabled,
two_factor_auth_enabled_date,
unsubscribe, unsubscribe,
user_icon, user_icon,
username, username,

View File

@ -15,6 +15,8 @@ pub enum Region {
Us, Us,
#[serde(rename = "use")] #[serde(rename = "use")]
_Use, _Use,
#[serde(rename = "usw")]
Usw,
#[serde(rename = "eu")] #[serde(rename = "eu")]
Eu, Eu,
#[serde(rename = "jp")] #[serde(rename = "jp")]
@ -29,6 +31,7 @@ impl ToString for Region {
match self { match self {
Self::Us => String::from("us"), Self::Us => String::from("us"),
Self::_Use => String::from("use"), Self::_Use => String::from("use"),
Self::Usw => String::from("usw"),
Self::Eu => String::from("eu"), Self::Eu => String::from("eu"),
Self::Jp => String::from("jp"), Self::Jp => String::from("jp"),
Self::Unknown => String::from("unknown"), Self::Unknown => String::from("unknown"),