mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Upgrade Rust SDK to spec 1.18.3
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "vrchatapi"
|
||||
version = "1.18.1"
|
||||
version = "1.18.3"
|
||||
authors = ["vrchatapi.lpv0t@aries.fyi"]
|
||||
description = "VRChat API Client for Rust"
|
||||
license = "MIT"
|
||||
|
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**image_url** | **String** | |
|
||||
**release_status** | Option<[**models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
||||
**version** | Option<**f64**> | | [optional][default to 1]
|
||||
**version** | Option<**i32**> | | [optional][default to 1]
|
||||
**unity_package_url** | Option<**String**> | | [optional]
|
||||
**unity_version** | Option<**String**> | | [optional][default to 5.3.4p1]
|
||||
|
||||
|
@ -5,9 +5,9 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**signature_md5** | **String** | |
|
||||
**signature_size_in_bytes** | **f64** | |
|
||||
**signature_size_in_bytes** | **i32** | |
|
||||
**file_md5** | Option<**String**> | | [optional]
|
||||
**file_size_in_bytes** | Option<**f64**> | | [optional]
|
||||
**file_size_in_bytes** | Option<**i32**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -55,6 +55,8 @@ Name | Type | Description | Notes
|
||||
**profile_pic_override** | **String** | |
|
||||
**profile_pic_override_thumbnail** | **String** | |
|
||||
**pronouns** | **String** | |
|
||||
**queued_instance** | Option<**String**> | | [optional]
|
||||
**receive_mobile_invitations** | Option<**bool**> | | [optional]
|
||||
**state** | [**models::UserState**](UserState.md) | |
|
||||
**status** | [**models::UserStatus**](UserStatus.md) | |
|
||||
**status_description** | **String** | |
|
||||
|
@ -5,6 +5,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**avatar_thumbnail** | Option<**String**> | | [optional]
|
||||
**current_avatar_tags** | Option<**String**> | | [optional]
|
||||
**display_name** | Option<**String**> | | [optional]
|
||||
**groups** | Option<**Vec<String>**> | | [optional]
|
||||
**id** | Option<**String**> | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional]
|
||||
@ -16,6 +17,7 @@ Name | Type | Description | Notes
|
||||
**status** | Option<**String**> | either a UserStatus or empty string | [optional]
|
||||
**traveling_to_instance** | Option<**String**> | | [optional]
|
||||
**traveling_to_world** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
|
||||
**user_icon** | Option<**String**> | | [optional]
|
||||
**world** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -6,8 +6,8 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**upload_id** | **String** | |
|
||||
**file_name** | **String** | |
|
||||
**next_part_number** | **f64** | |
|
||||
**max_parts** | **f64** | |
|
||||
**next_part_number** | **i32** | |
|
||||
**max_parts** | **i32** | |
|
||||
**parts** | [**Vec<serde_json::Value>**](serde_json::Value.md) | |
|
||||
**etags** | [**Vec<serde_json::Value>**](serde_json::Value.md) | Unknown |
|
||||
|
||||
|
@ -831,7 +831,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## get_group_members
|
||||
|
||||
> Vec<models::GroupMember> get_group_members(group_id, n, offset, sort)
|
||||
> Vec<models::GroupMember> get_group_members(group_id, n, offset, sort, role_id)
|
||||
List Group Members
|
||||
|
||||
Returns a List of all **other** Group Members. This endpoint will never return the user calling the endpoint. Information about the user calling the endpoint must be found in the `myMember` field of the Group object.
|
||||
@ -845,6 +845,7 @@ Name | Type | Description | Required | Notes
|
||||
**n** | Option<**i32**> | The number of objects to return. | |[default to 60]
|
||||
**offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | |
|
||||
**sort** | Option<[**GroupSearchSort**](.md)> | The sort order of Group Member results | |
|
||||
**role_id** | Option<**String**> | Only returns members with a specific groupRoleId | |
|
||||
|
||||
### Return type
|
||||
|
||||
|
@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
||||
**amount** | **f64** | |
|
||||
**description** | **String** | |
|
||||
**period** | [**models::SubscriptionPeriod**](SubscriptionPeriod.md) | |
|
||||
**tier** | **f64** | |
|
||||
**tier** | **i32** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -5,11 +5,11 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**agreement_id** | **String** | |
|
||||
**item_id** | **f64** | |
|
||||
**item_id** | **i32** | |
|
||||
**agreement** | **String** | |
|
||||
**status** | **String** | This is NOT TransactionStatus, but whatever Steam return. |
|
||||
**period** | **String** | |
|
||||
**frequency** | **f64** | |
|
||||
**frequency** | **i32** | |
|
||||
**billing_type** | **String** | |
|
||||
**start_date** | **String** | |
|
||||
**end_date** | **String** | |
|
||||
@ -20,8 +20,8 @@ Name | Type | Description | Notes
|
||||
**last_payment** | **String** | |
|
||||
**last_amount** | **f64** | |
|
||||
**last_amount_vat** | **f64** | |
|
||||
**outstanding** | **f64** | |
|
||||
**failed_attempts** | **f64** | |
|
||||
**outstanding** | **i32** | |
|
||||
**failed_attempts** | **i32** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
||||
**asset_url_object** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||
**asset_version** | **i32** | |
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**impostorizer_version** | Option<**String**> | | [optional]
|
||||
**platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. |
|
||||
**plugin_url** | Option<**String**> | | [optional]
|
||||
**plugin_url_object** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||
|
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**image_url** | Option<**String**> | | [optional]
|
||||
**release_status** | Option<[**models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
||||
**version** | Option<**f64**> | | [optional][default to 1]
|
||||
**version** | Option<**i32**> | | [optional][default to 1]
|
||||
**unity_package_url** | Option<**String**> | | [optional]
|
||||
**unity_version** | Option<**String**> | | [optional][default to 5.3.4p1]
|
||||
|
||||
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**email** | Option<**String**> | | [optional]
|
||||
**birthday** | Option<[**String**](string.md)> | | [optional]
|
||||
**accepted_tos_version** | Option<**f64**> | | [optional]
|
||||
**accepted_tos_version** | Option<**i32**> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**status** | Option<[**models::UserStatus**](UserStatus.md)> | | [optional]
|
||||
**status_description** | Option<**String**> | | [optional]
|
||||
|
@ -21,10 +21,11 @@ Name | Type | Description | Notes
|
||||
**is_friend** | **bool** | Either their `friendKey`, or empty string if you are not friends. Unknown usage. |
|
||||
**last_activity** | **String** | Either a date-time or empty string. |
|
||||
**last_login** | **String** | Either a date-time or empty string. |
|
||||
**last_mobile** | Option<**String**> | | [optional]
|
||||
**last_platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. |
|
||||
**location** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
|
||||
**note** | Option<**String**> | | [optional]
|
||||
**platform** | **String** | |
|
||||
**platform** | Option<**String**> | | [optional]
|
||||
**profile_pic_override** | **String** | |
|
||||
**profile_pic_override_thumbnail** | **String** | |
|
||||
**pronouns** | **String** | |
|
||||
|
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
||||
**amount** | **f64** | |
|
||||
**description** | **String** | |
|
||||
**period** | [**models::SubscriptionPeriod**](SubscriptionPeriod.md) | |
|
||||
**tier** | **f64** | |
|
||||
**tier** | **i32** | |
|
||||
**active** | **bool** | | [default to true]
|
||||
**status** | [**models::TransactionStatus**](TransactionStatus.md) | |
|
||||
**starts** | Option<**String**> | | [optional]
|
||||
|
@ -1145,7 +1145,7 @@ pub async fn get_group_member(configuration: &configuration::Configuration, grou
|
||||
}
|
||||
|
||||
/// Returns a List of all **other** Group Members. This endpoint will never return the user calling the endpoint. Information about the user calling the endpoint must be found in the `myMember` field of the Group object.
|
||||
pub async fn get_group_members(configuration: &configuration::Configuration, group_id: &str, n: Option<i32>, offset: Option<i32>, sort: Option<models::GroupSearchSort>) -> Result<Vec<models::GroupMember>, Error<GetGroupMembersError>> {
|
||||
pub async fn get_group_members(configuration: &configuration::Configuration, group_id: &str, n: Option<i32>, offset: Option<i32>, sort: Option<models::GroupSearchSort>, role_id: Option<&str>) -> Result<Vec<models::GroupMember>, Error<GetGroupMembersError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -1162,6 +1162,9 @@ pub async fn get_group_members(configuration: &configuration::Configuration, gro
|
||||
if let Some(ref local_var_str) = sort {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("sort", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = role_id {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("roleId", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ pub struct CreateAvatarRequest {
|
||||
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
|
||||
pub release_status: Option<models::ReleaseStatus>,
|
||||
#[serde(rename = "version", skip_serializing_if = "Option::is_none")]
|
||||
pub version: Option<f64>,
|
||||
pub version: Option<i32>,
|
||||
#[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")]
|
||||
pub unity_package_url: Option<String>,
|
||||
#[serde(rename = "unityVersion", skip_serializing_if = "Option::is_none")]
|
||||
|
@ -14,15 +14,15 @@ pub struct CreateFileVersionRequest {
|
||||
#[serde(rename = "signatureMd5")]
|
||||
pub signature_md5: String,
|
||||
#[serde(rename = "signatureSizeInBytes")]
|
||||
pub signature_size_in_bytes: f64,
|
||||
pub signature_size_in_bytes: i32,
|
||||
#[serde(rename = "fileMd5", skip_serializing_if = "Option::is_none")]
|
||||
pub file_md5: Option<String>,
|
||||
#[serde(rename = "fileSizeInBytes", skip_serializing_if = "Option::is_none")]
|
||||
pub file_size_in_bytes: Option<f64>,
|
||||
pub file_size_in_bytes: Option<i32>,
|
||||
}
|
||||
|
||||
impl CreateFileVersionRequest {
|
||||
pub fn new(signature_md5: String, signature_size_in_bytes: f64) -> CreateFileVersionRequest {
|
||||
pub fn new(signature_md5: String, signature_size_in_bytes: i32) -> CreateFileVersionRequest {
|
||||
CreateFileVersionRequest {
|
||||
signature_md5,
|
||||
signature_size_in_bytes,
|
||||
|
@ -119,6 +119,10 @@ pub struct CurrentUser {
|
||||
pub profile_pic_override_thumbnail: String,
|
||||
#[serde(rename = "pronouns")]
|
||||
pub pronouns: String,
|
||||
#[serde(rename = "queuedInstance", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub queued_instance: Option<Option<String>>,
|
||||
#[serde(rename = "receiveMobileInvitations", skip_serializing_if = "Option::is_none")]
|
||||
pub receive_mobile_invitations: Option<bool>,
|
||||
#[serde(rename = "state")]
|
||||
pub state: models::UserState,
|
||||
#[serde(rename = "status")]
|
||||
@ -204,6 +208,8 @@ impl CurrentUser {
|
||||
profile_pic_override,
|
||||
profile_pic_override_thumbnail,
|
||||
pronouns,
|
||||
queued_instance: None,
|
||||
receive_mobile_invitations: None,
|
||||
state,
|
||||
status,
|
||||
status_description,
|
||||
|
@ -13,6 +13,8 @@ use serde::{Deserialize, Serialize};
|
||||
pub struct CurrentUserPresence {
|
||||
#[serde(rename = "avatarThumbnail", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub avatar_thumbnail: Option<Option<String>>,
|
||||
#[serde(rename = "currentAvatarTags", skip_serializing_if = "Option::is_none")]
|
||||
pub current_avatar_tags: Option<String>,
|
||||
#[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
|
||||
pub display_name: Option<String>,
|
||||
#[serde(rename = "groups", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
@ -40,6 +42,8 @@ pub struct CurrentUserPresence {
|
||||
/// WorldID be \"offline\" on User profiles if you are not friends with that user.
|
||||
#[serde(rename = "travelingToWorld", skip_serializing_if = "Option::is_none")]
|
||||
pub traveling_to_world: Option<String>,
|
||||
#[serde(rename = "userIcon", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub user_icon: Option<Option<String>>,
|
||||
/// WorldID be \"offline\" on User profiles if you are not friends with that user.
|
||||
#[serde(rename = "world", skip_serializing_if = "Option::is_none")]
|
||||
pub world: Option<String>,
|
||||
@ -49,6 +53,7 @@ impl CurrentUserPresence {
|
||||
pub fn new() -> CurrentUserPresence {
|
||||
CurrentUserPresence {
|
||||
avatar_thumbnail: None,
|
||||
current_avatar_tags: None,
|
||||
display_name: None,
|
||||
groups: None,
|
||||
id: None,
|
||||
@ -60,6 +65,7 @@ impl CurrentUserPresence {
|
||||
status: None,
|
||||
traveling_to_instance: None,
|
||||
traveling_to_world: None,
|
||||
user_icon: None,
|
||||
world: None,
|
||||
}
|
||||
}
|
||||
|
@ -17,9 +17,9 @@ pub struct FileVersionUploadStatus {
|
||||
#[serde(rename = "fileName")]
|
||||
pub file_name: String,
|
||||
#[serde(rename = "nextPartNumber")]
|
||||
pub next_part_number: f64,
|
||||
pub next_part_number: i32,
|
||||
#[serde(rename = "maxParts")]
|
||||
pub max_parts: f64,
|
||||
pub max_parts: i32,
|
||||
#[serde(rename = "parts")]
|
||||
pub parts: Vec<serde_json::Value>,
|
||||
/// Unknown
|
||||
@ -28,7 +28,7 @@ pub struct FileVersionUploadStatus {
|
||||
}
|
||||
|
||||
impl FileVersionUploadStatus {
|
||||
pub fn new(upload_id: String, file_name: String, next_part_number: f64, max_parts: f64, parts: Vec<serde_json::Value>, etags: Vec<serde_json::Value>) -> FileVersionUploadStatus {
|
||||
pub fn new(upload_id: String, file_name: String, next_part_number: i32, max_parts: i32, parts: Vec<serde_json::Value>, etags: Vec<serde_json::Value>) -> FileVersionUploadStatus {
|
||||
FileVersionUploadStatus {
|
||||
upload_id,
|
||||
file_name,
|
||||
|
@ -31,11 +31,11 @@ pub struct Subscription {
|
||||
#[serde(rename = "period")]
|
||||
pub period: models::SubscriptionPeriod,
|
||||
#[serde(rename = "tier")]
|
||||
pub tier: f64,
|
||||
pub tier: i32,
|
||||
}
|
||||
|
||||
impl Subscription {
|
||||
pub fn new(id: String, steam_item_id: String, amount: f64, description: String, period: models::SubscriptionPeriod, tier: f64) -> Subscription {
|
||||
pub fn new(id: String, steam_item_id: String, amount: f64, description: String, period: models::SubscriptionPeriod, tier: i32) -> Subscription {
|
||||
Subscription {
|
||||
id,
|
||||
steam_item_id,
|
||||
|
@ -15,7 +15,7 @@ pub struct TransactionAgreement {
|
||||
#[serde(rename = "agreementId")]
|
||||
pub agreement_id: String,
|
||||
#[serde(rename = "itemId")]
|
||||
pub item_id: f64,
|
||||
pub item_id: i32,
|
||||
#[serde(rename = "agreement")]
|
||||
pub agreement: String,
|
||||
/// This is NOT TransactionStatus, but whatever Steam return.
|
||||
@ -24,7 +24,7 @@ pub struct TransactionAgreement {
|
||||
#[serde(rename = "period")]
|
||||
pub period: String,
|
||||
#[serde(rename = "frequency")]
|
||||
pub frequency: f64,
|
||||
pub frequency: i32,
|
||||
#[serde(rename = "billingType")]
|
||||
pub billing_type: String,
|
||||
#[serde(rename = "startDate")]
|
||||
@ -46,14 +46,14 @@ pub struct TransactionAgreement {
|
||||
#[serde(rename = "lastAmountVat")]
|
||||
pub last_amount_vat: f64,
|
||||
#[serde(rename = "outstanding")]
|
||||
pub outstanding: f64,
|
||||
pub outstanding: i32,
|
||||
#[serde(rename = "failedAttempts")]
|
||||
pub failed_attempts: f64,
|
||||
pub failed_attempts: i32,
|
||||
}
|
||||
|
||||
impl TransactionAgreement {
|
||||
/// Represents a single Transaction, which is likely between VRChat and Steam.
|
||||
pub fn new(agreement_id: String, item_id: f64, agreement: String, status: String, period: String, frequency: f64, billing_type: String, start_date: String, end_date: String, recurring_amt: f64, currency: String, time_created: String, next_payment: String, last_payment: String, last_amount: f64, last_amount_vat: f64, outstanding: f64, failed_attempts: f64) -> TransactionAgreement {
|
||||
pub fn new(agreement_id: String, item_id: i32, agreement: String, status: String, period: String, frequency: i32, billing_type: String, start_date: String, end_date: String, recurring_amt: f64, currency: String, time_created: String, next_payment: String, last_payment: String, last_amount: f64, last_amount_vat: f64, outstanding: i32, failed_attempts: i32) -> TransactionAgreement {
|
||||
TransactionAgreement {
|
||||
agreement_id,
|
||||
item_id,
|
||||
|
@ -22,6 +22,8 @@ pub struct UnityPackage {
|
||||
pub asset_version: i32,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "impostorizerVersion", skip_serializing_if = "Option::is_none")]
|
||||
pub impostorizer_version: Option<String>,
|
||||
/// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
|
||||
#[serde(rename = "platform")]
|
||||
pub platform: String,
|
||||
@ -49,6 +51,7 @@ impl UnityPackage {
|
||||
asset_url_object: None,
|
||||
asset_version,
|
||||
created_at: None,
|
||||
impostorizer_version: None,
|
||||
platform,
|
||||
plugin_url: None,
|
||||
plugin_url_object: None,
|
||||
|
@ -26,7 +26,7 @@ pub struct UpdateAvatarRequest {
|
||||
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
|
||||
pub release_status: Option<models::ReleaseStatus>,
|
||||
#[serde(rename = "version", skip_serializing_if = "Option::is_none")]
|
||||
pub version: Option<f64>,
|
||||
pub version: Option<i32>,
|
||||
#[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")]
|
||||
pub unity_package_url: Option<String>,
|
||||
#[serde(rename = "unityVersion", skip_serializing_if = "Option::is_none")]
|
||||
|
@ -16,7 +16,7 @@ pub struct UpdateUserRequest {
|
||||
#[serde(rename = "birthday", skip_serializing_if = "Option::is_none")]
|
||||
pub birthday: Option<String>,
|
||||
#[serde(rename = "acceptedTOSVersion", skip_serializing_if = "Option::is_none")]
|
||||
pub accepted_tos_version: Option<f64>,
|
||||
pub accepted_tos_version: Option<i32>,
|
||||
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
||||
pub tags: Option<Vec<String>>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
|
@ -53,6 +53,8 @@ pub struct User {
|
||||
/// Either a date-time or empty string.
|
||||
#[serde(rename = "last_login")]
|
||||
pub last_login: String,
|
||||
#[serde(rename = "last_mobile", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub last_mobile: Option<Option<String>>,
|
||||
/// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
|
||||
#[serde(rename = "last_platform")]
|
||||
pub last_platform: String,
|
||||
@ -61,8 +63,8 @@ pub struct User {
|
||||
pub location: Option<String>,
|
||||
#[serde(rename = "note", skip_serializing_if = "Option::is_none")]
|
||||
pub note: Option<String>,
|
||||
#[serde(rename = "platform")]
|
||||
pub platform: String,
|
||||
#[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
|
||||
pub platform: Option<String>,
|
||||
#[serde(rename = "profilePicOverride")]
|
||||
pub profile_pic_override: String,
|
||||
#[serde(rename = "profilePicOverrideThumbnail")]
|
||||
@ -94,7 +96,7 @@ pub struct User {
|
||||
}
|
||||
|
||||
impl User {
|
||||
pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec<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, friend_key: String, id: String, is_friend: bool, last_activity: String, last_login: String, last_platform: String, platform: String, profile_pic_override: String, profile_pic_override_thumbnail: String, pronouns: String, state: models::UserState, status: models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String) -> User {
|
||||
pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec<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, friend_key: String, id: String, is_friend: bool, last_activity: String, last_login: String, last_platform: String, profile_pic_override: String, profile_pic_override_thumbnail: String, pronouns: String, state: models::UserState, status: models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String) -> User {
|
||||
User {
|
||||
allow_avatar_copying,
|
||||
badges: None,
|
||||
@ -113,10 +115,11 @@ impl User {
|
||||
is_friend,
|
||||
last_activity,
|
||||
last_login,
|
||||
last_mobile: None,
|
||||
last_platform,
|
||||
location: None,
|
||||
note: None,
|
||||
platform,
|
||||
platform: None,
|
||||
profile_pic_override,
|
||||
profile_pic_override_thumbnail,
|
||||
pronouns,
|
||||
|
@ -28,7 +28,7 @@ pub struct UserSubscription {
|
||||
#[serde(rename = "period")]
|
||||
pub period: models::SubscriptionPeriod,
|
||||
#[serde(rename = "tier")]
|
||||
pub tier: f64,
|
||||
pub tier: i32,
|
||||
#[serde(rename = "active")]
|
||||
pub active: bool,
|
||||
#[serde(rename = "status")]
|
||||
@ -48,7 +48,7 @@ pub struct UserSubscription {
|
||||
}
|
||||
|
||||
impl UserSubscription {
|
||||
pub fn new(id: String, transaction_id: String, store: String, amount: f64, description: String, period: models::SubscriptionPeriod, tier: f64, active: bool, status: models::TransactionStatus, expires: String, created_at: String, updated_at: String, license_groups: Vec<String>, is_gift: bool) -> UserSubscription {
|
||||
pub fn new(id: String, transaction_id: String, store: String, amount: f64, description: String, period: models::SubscriptionPeriod, tier: i32, active: bool, status: models::TransactionStatus, expires: String, created_at: String, updated_at: String, license_groups: Vec<String>, is_gift: bool) -> UserSubscription {
|
||||
UserSubscription {
|
||||
id,
|
||||
transaction_id,
|
||||
|
Reference in New Issue
Block a user