mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 23:55:33 +00:00
Upgrade Rust SDK to spec 1.7.0
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* Contact: me@ruby.js.org
|
||||
* Contact: me@ariesclark.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
@ -103,8 +103,8 @@ pub struct CurrentUser {
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "twoFactorAuthEnabled")]
|
||||
pub two_factor_auth_enabled: bool,
|
||||
#[serde(rename = "twoFactorAuthEnabledDate")]
|
||||
pub two_factor_auth_enabled_date: String,
|
||||
#[serde(rename = "twoFactorAuthEnabledDate", skip_serializing_if = "Option::is_none")]
|
||||
pub two_factor_auth_enabled_date: Option<String>,
|
||||
#[serde(rename = "unsubscribe")]
|
||||
pub unsubscribe: bool,
|
||||
#[serde(rename = "userIcon")]
|
||||
@ -114,7 +114,7 @@ pub struct 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, two_factor_auth_enabled_date: String, 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, unsubscribe: bool, user_icon: String, username: String) -> CurrentUser {
|
||||
CurrentUser {
|
||||
accepted_tos_version,
|
||||
account_deletion_date: None,
|
||||
@ -159,7 +159,7 @@ impl CurrentUser {
|
||||
steam_id,
|
||||
tags,
|
||||
two_factor_auth_enabled,
|
||||
two_factor_auth_enabled_date,
|
||||
two_factor_auth_enabled_date: None,
|
||||
unsubscribe,
|
||||
user_icon,
|
||||
username,
|
||||
|
Reference in New Issue
Block a user