mirror of
https://github.com/Tribufu/TribufuRust
synced 2026-08-08 20:31:07 +00:00
Update api to 1.4.3
This commit is contained in:
parent
9eb473d6d6
commit
732ad87783
53 changed files with 321 additions and 1022 deletions
|
|
@ -1,7 +1,6 @@
|
|||
src/apis/configuration.rs
|
||||
src/apis/mod.rs
|
||||
src/apis/tribufu_generated_api.rs
|
||||
src/models/account.rs
|
||||
src/models/application.rs
|
||||
src/models/application_type.rs
|
||||
src/models/authorize_request.rs
|
||||
|
|
@ -12,6 +11,7 @@ src/models/code_challenge_method.rs
|
|||
src/models/code_response.rs
|
||||
src/models/create_user.rs
|
||||
src/models/crypto_view_model.rs
|
||||
src/models/external_account.rs
|
||||
src/models/game.rs
|
||||
src/models/game_server.rs
|
||||
src/models/game_server_cluster.rs
|
||||
|
|
@ -23,12 +23,12 @@ src/models/group_application.rs
|
|||
src/models/group_member.rs
|
||||
src/models/group_rank.rs
|
||||
src/models/hash_view_model.rs
|
||||
src/models/identity_provider_type.rs
|
||||
src/models/introspect_request.rs
|
||||
src/models/introspect_response.rs
|
||||
src/models/ip_address.rs
|
||||
src/models/leaderboard_item.rs
|
||||
src/models/leaderboard_order.rs
|
||||
src/models/login_provider.rs
|
||||
src/models/mod.rs
|
||||
src/models/package.rs
|
||||
src/models/package_release.rs
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -40,7 +40,7 @@ impl Default for Configuration {
|
|||
fn default() -> Self {
|
||||
Configuration {
|
||||
base_path: "http://localhost".to_owned(),
|
||||
user_agent: Some("OpenAPI-Generator/1.3.0/rust".to_owned()),
|
||||
user_agent: Some("OpenAPI-Generator/1.4.3/rust".to_owned()),
|
||||
client: reqwest::Client::new(),
|
||||
basic_auth: None,
|
||||
oauth_access_token: None,
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -21,8 +21,8 @@ pub struct Application {
|
|||
pub description: Option<Option<String>>,
|
||||
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
|
||||
pub r#type: Option<models::ApplicationType>,
|
||||
#[serde(rename = "organization_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub organization_id: Option<Option<String>>,
|
||||
#[serde(rename = "organization_id", skip_serializing_if = "Option::is_none")]
|
||||
pub organization_id: Option<String>,
|
||||
#[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub icon_url: Option<Option<String>>,
|
||||
#[serde(rename = "banner_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -33,10 +33,12 @@ pub struct Application {
|
|||
pub library_image_url: Option<Option<String>>,
|
||||
#[serde(rename = "slug", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub slug: Option<Option<String>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl Application {
|
||||
|
|
@ -52,8 +54,9 @@ impl Application {
|
|||
capsule_image_url: None,
|
||||
library_image_url: None,
|
||||
slug: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -14,8 +14,8 @@ use serde::{Deserialize, Serialize};
|
|||
///
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||
pub enum ApplicationType {
|
||||
#[serde(rename = "application")]
|
||||
Application,
|
||||
#[serde(rename = "software")]
|
||||
Software,
|
||||
#[serde(rename = "game")]
|
||||
Game,
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ pub enum ApplicationType {
|
|||
impl std::fmt::Display for ApplicationType {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::Application => write!(f, "application"),
|
||||
Self::Software => write!(f, "software"),
|
||||
Self::Game => write!(f, "game"),
|
||||
}
|
||||
}
|
||||
|
|
@ -32,7 +32,7 @@ impl std::fmt::Display for ApplicationType {
|
|||
|
||||
impl Default for ApplicationType {
|
||||
fn default() -> ApplicationType {
|
||||
Self::Application
|
||||
Self::Software
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -35,10 +35,12 @@ pub struct Client {
|
|||
pub scopes: Option<Option<String>>,
|
||||
#[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub permissions: Option<Option<Vec<String>>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl Client {
|
||||
|
|
@ -55,8 +57,9 @@ impl Client {
|
|||
redirects: None,
|
||||
scopes: None,
|
||||
permissions: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -13,8 +13,8 @@ use serde::{Deserialize, Serialize};
|
|||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CreateUser {
|
||||
#[serde(rename = "uuid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub uuid: Option<Option<uuid::Uuid>>,
|
||||
#[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
|
||||
pub uuid: Option<String>,
|
||||
#[serde(rename = "name")]
|
||||
pub name: String,
|
||||
#[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
51
src/models/external_account.rs
Normal file
51
src/models/external_account.rs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct ExternalAccount {
|
||||
#[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
|
||||
pub user_id: Option<String>,
|
||||
#[serde(rename = "provider")]
|
||||
pub provider: models::IdentityProviderType,
|
||||
#[serde(rename = "external_id", deserialize_with = "Option::deserialize")]
|
||||
pub external_id: Option<String>,
|
||||
#[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<Option<String>>,
|
||||
#[serde(rename = "authorized", skip_serializing_if = "Option::is_none")]
|
||||
pub authorized: Option<bool>,
|
||||
#[serde(rename = "fields", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub fields: Option<Option<std::collections::HashMap<String, serde_json::Value>>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl ExternalAccount {
|
||||
pub fn new(provider: models::IdentityProviderType, external_id: Option<String>) -> ExternalAccount {
|
||||
ExternalAccount {
|
||||
user_id: None,
|
||||
provider,
|
||||
external_id,
|
||||
name: None,
|
||||
authorized: None,
|
||||
fields: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -21,8 +21,8 @@ pub struct Game {
|
|||
pub description: Option<Option<String>>,
|
||||
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
|
||||
pub r#type: Option<models::ApplicationType>,
|
||||
#[serde(rename = "organization_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub organization_id: Option<Option<String>>,
|
||||
#[serde(rename = "organization_id", skip_serializing_if = "Option::is_none")]
|
||||
pub organization_id: Option<String>,
|
||||
#[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub icon_url: Option<Option<String>>,
|
||||
#[serde(rename = "banner_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -33,10 +33,12 @@ pub struct Game {
|
|||
pub library_image_url: Option<Option<String>>,
|
||||
#[serde(rename = "slug", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub slug: Option<Option<String>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
#[serde(rename = "enable_servers", skip_serializing_if = "Option::is_none")]
|
||||
pub enable_servers: Option<bool>,
|
||||
#[serde(rename = "game_port", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -66,8 +68,9 @@ impl Game {
|
|||
capsule_image_url: None,
|
||||
library_image_url: None,
|
||||
slug: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
enable_servers: None,
|
||||
game_port: None,
|
||||
query_port: None,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -19,8 +19,8 @@ pub struct GameServer {
|
|||
pub name: Option<String>,
|
||||
#[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub description: Option<Option<String>>,
|
||||
#[serde(rename = "owner_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub owner_id: Option<Option<String>>,
|
||||
#[serde(rename = "owner_id", skip_serializing_if = "Option::is_none")]
|
||||
pub owner_id: Option<String>,
|
||||
#[serde(rename = "address", deserialize_with = "Option::deserialize")]
|
||||
pub address: Option<String>,
|
||||
#[serde(rename = "query_port")]
|
||||
|
|
@ -35,8 +35,8 @@ pub struct GameServer {
|
|||
pub game_id: Option<String>,
|
||||
#[serde(rename = "game_icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub game_icon_url: Option<Option<String>>,
|
||||
#[serde(rename = "cluster_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub cluster_id: Option<Option<String>>,
|
||||
#[serde(rename = "cluster_id", skip_serializing_if = "Option::is_none")]
|
||||
pub cluster_id: Option<String>,
|
||||
#[serde(rename = "website_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub website_url: Option<Option<String>>,
|
||||
#[serde(rename = "banner_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -48,13 +48,15 @@ pub struct GameServer {
|
|||
#[serde(rename = "steam", skip_serializing_if = "Option::is_none")]
|
||||
pub steam: Option<bool>,
|
||||
#[serde(rename = "discord_server_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub discord_server_id: Option<Option<String>>,
|
||||
pub discord_server_id: Option<Option<i64>>,
|
||||
#[serde(rename = "youtube_video_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub youtube_video_url: Option<Option<String>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl GameServer {
|
||||
|
|
@ -79,8 +81,9 @@ impl GameServer {
|
|||
steam: None,
|
||||
discord_server_id: None,
|
||||
youtube_video_url: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -28,7 +28,7 @@ pub struct GameServerCluster {
|
|||
#[serde(rename = "owner_id", skip_serializing_if = "Option::is_none")]
|
||||
pub owner_id: Option<String>,
|
||||
#[serde(rename = "discord_server_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub discord_server_id: Option<Option<String>>,
|
||||
pub discord_server_id: Option<Option<i64>>,
|
||||
#[serde(rename = "youtube_video_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub youtube_video_url: Option<Option<String>>,
|
||||
#[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -37,10 +37,12 @@ pub struct GameServerCluster {
|
|||
pub comment_count: Option<i32>,
|
||||
#[serde(rename = "server_count", skip_serializing_if = "Option::is_none")]
|
||||
pub server_count: Option<i32>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl GameServerCluster {
|
||||
|
|
@ -58,8 +60,9 @@ impl GameServerCluster {
|
|||
tags: None,
|
||||
comment_count: None,
|
||||
server_count: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -27,8 +27,8 @@ pub struct GameServerQuery {
|
|||
pub max_players: Option<i32>,
|
||||
#[serde(rename = "motd", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub motd: Option<Option<String>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
}
|
||||
|
||||
impl GameServerQuery {
|
||||
|
|
@ -41,7 +41,7 @@ impl GameServerQuery {
|
|||
current_players: None,
|
||||
max_players: None,
|
||||
motd: None,
|
||||
created: None,
|
||||
created_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -16,7 +16,7 @@ pub struct Group {
|
|||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<String>,
|
||||
#[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
|
||||
pub uuid: Option<uuid::Uuid>,
|
||||
pub uuid: Option<String>,
|
||||
#[serde(rename = "name", deserialize_with = "Option::deserialize")]
|
||||
pub name: Option<String>,
|
||||
#[serde(rename = "tag", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -41,10 +41,12 @@ pub struct Group {
|
|||
pub follower_count: Option<i32>,
|
||||
#[serde(rename = "view_count", skip_serializing_if = "Option::is_none")]
|
||||
pub view_count: Option<i32>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl Group {
|
||||
|
|
@ -64,8 +66,9 @@ impl Group {
|
|||
member_count: None,
|
||||
follower_count: None,
|
||||
view_count: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -15,18 +15,12 @@ use serde::{Deserialize, Serialize};
|
|||
pub struct GroupMember {
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<String>,
|
||||
#[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
|
||||
pub uuid: Option<uuid::Uuid>,
|
||||
#[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<Option<String>>,
|
||||
#[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub display_name: Option<Option<String>>,
|
||||
#[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
|
||||
pub verified: Option<bool>,
|
||||
#[serde(rename = "photo_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub photo_url: Option<Option<String>>,
|
||||
#[serde(rename = "last_online", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub last_online: Option<Option<String>>,
|
||||
#[serde(rename = "rank", skip_serializing_if = "Option::is_none")]
|
||||
pub rank: Option<models::GroupRank>,
|
||||
#[serde(rename = "since", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -37,12 +31,9 @@ impl GroupMember {
|
|||
pub fn new() -> GroupMember {
|
||||
GroupMember {
|
||||
id: None,
|
||||
uuid: None,
|
||||
name: None,
|
||||
display_name: None,
|
||||
verified: None,
|
||||
photo_url: None,
|
||||
last_online: None,
|
||||
rank: None,
|
||||
since: None,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
53
src/models/identity_provider_type.rs
Normal file
53
src/models/identity_provider_type.rs
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
use crate::models;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
///
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||
pub enum IdentityProviderType {
|
||||
#[serde(rename = "steam")]
|
||||
Steam,
|
||||
#[serde(rename = "epic")]
|
||||
Epic,
|
||||
#[serde(rename = "discord")]
|
||||
Discord,
|
||||
#[serde(rename = "microsoft")]
|
||||
Microsoft,
|
||||
#[serde(rename = "playstation")]
|
||||
Playstation,
|
||||
#[serde(rename = "google")]
|
||||
Google,
|
||||
#[serde(rename = "apple")]
|
||||
Apple,
|
||||
|
||||
}
|
||||
|
||||
impl std::fmt::Display for IdentityProviderType {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::Steam => write!(f, "steam"),
|
||||
Self::Epic => write!(f, "epic"),
|
||||
Self::Discord => write!(f, "discord"),
|
||||
Self::Microsoft => write!(f, "microsoft"),
|
||||
Self::Playstation => write!(f, "playstation"),
|
||||
Self::Google => write!(f, "google"),
|
||||
Self::Apple => write!(f, "apple"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for IdentityProviderType {
|
||||
fn default() -> IdentityProviderType {
|
||||
Self::Steam
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
pub mod account;
|
||||
pub use self::account::Account;
|
||||
pub mod application;
|
||||
pub use self::application::Application;
|
||||
pub mod application_type;
|
||||
|
|
@ -20,6 +18,8 @@ pub mod create_user;
|
|||
pub use self::create_user::CreateUser;
|
||||
pub mod crypto_view_model;
|
||||
pub use self::crypto_view_model::CryptoViewModel;
|
||||
pub mod external_account;
|
||||
pub use self::external_account::ExternalAccount;
|
||||
pub mod game;
|
||||
pub use self::game::Game;
|
||||
pub mod game_server;
|
||||
|
|
@ -42,6 +42,8 @@ pub mod group_rank;
|
|||
pub use self::group_rank::GroupRank;
|
||||
pub mod hash_view_model;
|
||||
pub use self::hash_view_model::HashViewModel;
|
||||
pub mod identity_provider_type;
|
||||
pub use self::identity_provider_type::IdentityProviderType;
|
||||
pub mod introspect_request;
|
||||
pub use self::introspect_request::IntrospectRequest;
|
||||
pub mod introspect_response;
|
||||
|
|
@ -52,8 +54,6 @@ pub mod leaderboard_item;
|
|||
pub use self::leaderboard_item::LeaderboardItem;
|
||||
pub mod leaderboard_order;
|
||||
pub use self::leaderboard_order::LeaderboardOrder;
|
||||
pub mod login_provider;
|
||||
pub use self::login_provider::LoginProvider;
|
||||
pub mod package;
|
||||
pub use self::package::Package;
|
||||
pub mod package_release;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -23,20 +23,22 @@ pub struct Package {
|
|||
pub author_id: Option<String>,
|
||||
#[serde(rename = "image_url", deserialize_with = "Option::deserialize")]
|
||||
pub image_url: Option<String>,
|
||||
#[serde(rename = "application_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub application_id: Option<Option<String>>,
|
||||
#[serde(rename = "category_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub category_id: Option<Option<String>>,
|
||||
#[serde(rename = "application_id", skip_serializing_if = "Option::is_none")]
|
||||
pub application_id: Option<String>,
|
||||
#[serde(rename = "category_id", skip_serializing_if = "Option::is_none")]
|
||||
pub category_id: Option<String>,
|
||||
#[serde(rename = "download_count", skip_serializing_if = "Option::is_none")]
|
||||
pub download_count: Option<i32>,
|
||||
#[serde(rename = "last_download", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub last_download: Option<Option<String>>,
|
||||
#[serde(rename = "releases", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub releases: Option<Option<Vec<models::PackageRelease>>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl Package {
|
||||
|
|
@ -52,8 +54,9 @@ impl Package {
|
|||
download_count: None,
|
||||
last_download: None,
|
||||
releases: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -23,10 +23,12 @@ pub struct PackageRelease {
|
|||
pub notes: Option<Option<String>>,
|
||||
#[serde(rename = "files", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub files: Option<Option<Vec<models::StorageFile>>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl PackageRelease {
|
||||
|
|
@ -37,8 +39,9 @@ impl PackageRelease {
|
|||
package_id: None,
|
||||
notes: None,
|
||||
files: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -17,6 +17,8 @@ pub struct Product {
|
|||
pub id: Option<String>,
|
||||
#[serde(rename = "name", deserialize_with = "Option::deserialize")]
|
||||
pub name: Option<String>,
|
||||
#[serde(rename = "sku", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub sku: Option<Option<String>>,
|
||||
#[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub description: Option<Option<String>>,
|
||||
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -25,14 +27,14 @@ pub struct Product {
|
|||
pub slug: Option<Option<String>>,
|
||||
#[serde(rename = "image_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub image_url: Option<Option<String>>,
|
||||
#[serde(rename = "is_physical", skip_serializing_if = "Option::is_none")]
|
||||
pub is_physical: Option<bool>,
|
||||
#[serde(rename = "prices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub prices: Option<Option<Vec<models::ProductPrice>>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl Product {
|
||||
|
|
@ -40,14 +42,15 @@ impl Product {
|
|||
Product {
|
||||
id: None,
|
||||
name,
|
||||
sku: None,
|
||||
description: None,
|
||||
r#type: None,
|
||||
slug: None,
|
||||
image_url: None,
|
||||
is_physical: None,
|
||||
prices: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -15,8 +15,8 @@ use serde::{Deserialize, Serialize};
|
|||
pub struct ProductPrice {
|
||||
#[serde(rename = "currency", deserialize_with = "Option::deserialize")]
|
||||
pub currency: Option<String>,
|
||||
#[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
|
||||
pub amount: Option<f64>,
|
||||
#[serde(rename = "price", skip_serializing_if = "Option::is_none")]
|
||||
pub price: Option<f64>,
|
||||
#[serde(rename = "renewal", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub renewal: Option<Option<f64>>,
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@ impl ProductPrice {
|
|||
pub fn new(currency: Option<String>) -> ProductPrice {
|
||||
ProductPrice {
|
||||
currency,
|
||||
amount: None,
|
||||
price: None,
|
||||
renewal: None,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -15,26 +15,18 @@ use serde::{Deserialize, Serialize};
|
|||
pub struct Profile {
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<String>,
|
||||
#[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
|
||||
pub uuid: Option<uuid::Uuid>,
|
||||
#[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<Option<String>>,
|
||||
#[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub display_name: Option<Option<String>>,
|
||||
#[serde(rename = "verified", skip_serializing_if = "Option::is_none")]
|
||||
pub verified: Option<bool>,
|
||||
#[serde(rename = "level", skip_serializing_if = "Option::is_none")]
|
||||
pub level: Option<i32>,
|
||||
#[serde(rename = "experience", skip_serializing_if = "Option::is_none")]
|
||||
pub experience: Option<f64>,
|
||||
#[serde(rename = "public_birthday", skip_serializing_if = "Option::is_none")]
|
||||
pub public_birthday: Option<bool>,
|
||||
#[serde(rename = "birthday", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub birthday: Option<Option<String>>,
|
||||
#[serde(rename = "points", skip_serializing_if = "Option::is_none")]
|
||||
pub points: Option<f64>,
|
||||
#[serde(rename = "location", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub location: Option<Option<String>>,
|
||||
#[serde(rename = "photo_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub photo_url: Option<Option<String>>,
|
||||
#[serde(rename = "banner_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -43,35 +35,28 @@ pub struct Profile {
|
|||
pub last_online: Option<Option<String>>,
|
||||
#[serde(rename = "biography", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub biography: Option<Option<String>>,
|
||||
#[serde(rename = "view_count", skip_serializing_if = "Option::is_none")]
|
||||
pub view_count: Option<i32>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl Profile {
|
||||
pub fn new() -> Profile {
|
||||
Profile {
|
||||
id: None,
|
||||
uuid: None,
|
||||
name: None,
|
||||
display_name: None,
|
||||
verified: None,
|
||||
level: None,
|
||||
experience: None,
|
||||
public_birthday: None,
|
||||
birthday: None,
|
||||
points: None,
|
||||
location: None,
|
||||
photo_url: None,
|
||||
banner_url: None,
|
||||
last_online: None,
|
||||
biography: None,
|
||||
view_count: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -16,7 +16,7 @@ pub struct ProfileGroup {
|
|||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<String>,
|
||||
#[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
|
||||
pub uuid: Option<uuid::Uuid>,
|
||||
pub uuid: Option<String>,
|
||||
#[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub name: Option<Option<String>>,
|
||||
#[serde(rename = "tag", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -19,8 +19,8 @@ pub struct Search {
|
|||
pub query: Option<String>,
|
||||
#[serde(rename = "page", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub page: Option<Option<i32>>,
|
||||
#[serde(rename = "game_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub game_id: Option<Option<String>>,
|
||||
#[serde(rename = "game_id", skip_serializing_if = "Option::is_none")]
|
||||
pub game_id: Option<String>,
|
||||
}
|
||||
|
||||
impl Search {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -27,10 +27,12 @@ pub struct StorageFile {
|
|||
pub hash: Option<Option<String>>,
|
||||
#[serde(rename = "etag", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub etag: Option<Option<String>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
#[serde(rename = "deleted_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deleted_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl StorageFile {
|
||||
|
|
@ -43,8 +45,9 @@ impl StorageFile {
|
|||
size: None,
|
||||
hash: None,
|
||||
etag: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
deleted_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
@ -15,14 +15,12 @@ use serde::{Deserialize, Serialize};
|
|||
pub struct UserInfo {
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<String>,
|
||||
#[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
|
||||
pub uuid: Option<uuid::Uuid>,
|
||||
#[serde(rename = "name", deserialize_with = "Option::deserialize")]
|
||||
pub name: Option<String>,
|
||||
#[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub display_name: Option<Option<String>>,
|
||||
#[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub email: Option<Option<String>>,
|
||||
#[serde(rename = "email_address", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub email_address: Option<Option<String>>,
|
||||
#[serde(rename = "email_verified", skip_serializing_if = "Option::is_none")]
|
||||
pub email_verified: Option<bool>,
|
||||
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
|
||||
|
|
@ -37,20 +35,19 @@ pub struct UserInfo {
|
|||
pub photo_url: Option<Option<String>>,
|
||||
#[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub permissions: Option<Option<Vec<String>>>,
|
||||
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
|
||||
pub created: Option<String>,
|
||||
#[serde(rename = "updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated: Option<Option<String>>,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub updated_at: Option<Option<String>>,
|
||||
}
|
||||
|
||||
impl UserInfo {
|
||||
pub fn new(name: Option<String>) -> UserInfo {
|
||||
UserInfo {
|
||||
id: None,
|
||||
uuid: None,
|
||||
name,
|
||||
display_name: None,
|
||||
email: None,
|
||||
email_address: None,
|
||||
email_verified: None,
|
||||
r#type: None,
|
||||
language: None,
|
||||
|
|
@ -58,8 +55,8 @@ impl UserInfo {
|
|||
currency: None,
|
||||
photo_url: None,
|
||||
permissions: None,
|
||||
created: None,
|
||||
updated: None,
|
||||
created_at: None,
|
||||
updated_at: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* The version of the OpenAPI document: 1.4.3
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue