mirror of
https://github.com/Tribufu/TribufuRust
synced 2026-08-10 05:11: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
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue