Bump openapi-generator to 7.7.0 (#14)

* bump: openapi-generator to 7.7.0

* fix: remove empty doc comments to silence clippy

* bump: remove unessecary patches fixed by the update

* bump: run generate.sh
This commit is contained in:
DerTiedemann
2024-07-21 02:18:01 +02:00
committed by GitHub
parent 169cbe48b0
commit 2c4cf7d817
263 changed files with 1978 additions and 2062 deletions

View File

@ -6,10 +6,10 @@
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CurrentUser {
#[serde(rename = "acceptedTOSVersion")]
pub accepted_tos_version: i32,
@ -17,20 +17,16 @@ pub struct CurrentUser {
pub accepted_privacy_version: Option<i32>,
#[serde(rename = "accountDeletionDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub account_deletion_date: Option<Option<String>>,
///
#[serde(rename = "accountDeletionLog", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub account_deletion_log: Option<Option<Vec<crate::models::AccountDeletionLog>>>,
///
pub account_deletion_log: Option<Option<Vec<models::AccountDeletionLog>>>,
#[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")]
pub active_friends: Option<Vec<String>>,
#[serde(rename = "allowAvatarCopying")]
pub allow_avatar_copying: bool,
///
#[serde(rename = "badges", skip_serializing_if = "Option::is_none")]
pub badges: Option<Vec<crate::models::Badge>>,
pub badges: Option<Vec<models::Badge>>,
#[serde(rename = "bio")]
pub bio: String,
///
#[serde(rename = "bioLinks")]
pub bio_links: Vec<String>,
#[serde(rename = "currentAvatar")]
@ -48,7 +44,7 @@ pub struct CurrentUser {
#[serde(rename = "date_joined")]
pub date_joined: String,
#[serde(rename = "developerType")]
pub developer_type: crate::models::DeveloperType,
pub developer_type: models::DeveloperType,
#[serde(rename = "displayName")]
pub display_name: String,
#[serde(rename = "emailVerified")]
@ -113,11 +109,10 @@ pub struct CurrentUser {
pub offline_friends: Option<Vec<String>>,
#[serde(rename = "onlineFriends", skip_serializing_if = "Option::is_none")]
pub online_friends: Option<Vec<String>>,
///
#[serde(rename = "pastDisplayNames")]
pub past_display_names: Vec<crate::models::PastDisplayName>,
pub past_display_names: Vec<models::PastDisplayName>,
#[serde(rename = "presence", skip_serializing_if = "Option::is_none")]
pub presence: Option<Box<crate::models::CurrentUserPresence>>,
pub presence: Option<Box<models::CurrentUserPresence>>,
#[serde(rename = "profilePicOverride")]
pub profile_pic_override: String,
#[serde(rename = "profilePicOverrideThumbnail")]
@ -125,9 +120,9 @@ pub struct CurrentUser {
#[serde(rename = "pronouns")]
pub pronouns: String,
#[serde(rename = "state")]
pub state: crate::models::UserState,
pub state: models::UserState,
#[serde(rename = "status")]
pub status: crate::models::UserStatus,
pub status: models::UserStatus,
#[serde(rename = "statusDescription")]
pub status_description: String,
#[serde(rename = "statusFirstTime")]
@ -156,7 +151,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, current_avatar_tags: Vec<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_mobile: Option<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, profile_pic_override_thumbnail: String, pronouns: 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) -> 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, current_avatar_tags: Vec<String>, date_joined: String, developer_type: 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_mobile: Option<String>, last_platform: String, obfuscated_email: String, obfuscated_pending_email: String, oculus_id: String, past_display_names: Vec<models::PastDisplayName>, profile_pic_override: String, profile_pic_override_thumbnail: String, pronouns: String, state: models::UserState, status: 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) -> CurrentUser {
CurrentUser {
accepted_tos_version,
accepted_privacy_version: None,
@ -227,4 +222,3 @@ impl CurrentUser {
}
}