mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Upgrade Rust SDK to spec 1.16.0
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "vrchatapi"
|
||||
version = "1.15.0"
|
||||
version = "1.16.0"
|
||||
authors = ["vrchatapi.lpv0t@aries.fyi"]
|
||||
description = "VRChat API Client for Rust"
|
||||
license = "MIT"
|
||||
|
@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
||||
**current_avatar_asset_url** | **String** | |
|
||||
**current_avatar_image_url** | **String** | When profilePicOverride is not empty, use it instead. |
|
||||
**current_avatar_thumbnail_image_url** | **String** | When profilePicOverride is not empty, use it instead. |
|
||||
**current_avatar_tags** | Option<**Vec<String>**> | | [optional]
|
||||
**date_joined** | [**String**](string.md) | |
|
||||
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
|
||||
**display_name** | **String** | |
|
||||
@ -25,6 +26,9 @@ Name | Type | Description | Notes
|
||||
**friend_key** | **String** | |
|
||||
**friends** | **Vec<String>** | |
|
||||
**has_birthday** | **bool** | |
|
||||
**hide_content_filter_settings** | Option<**bool**> | | [optional]
|
||||
**user_language** | Option<**String**> | | [optional]
|
||||
**user_language_code** | Option<**String**> | | [optional]
|
||||
**has_email** | **bool** | |
|
||||
**has_logged_in_from_client** | **bool** | |
|
||||
**has_pending_email** | **bool** | |
|
||||
@ -37,6 +41,9 @@ Name | Type | Description | Notes
|
||||
**obfuscated_email** | **String** | |
|
||||
**obfuscated_pending_email** | **String** | |
|
||||
**oculus_id** | **String** | |
|
||||
**google_id** | Option<**String**> | | [optional]
|
||||
**pico_id** | Option<**String**> | | [optional]
|
||||
**vive_id** | Option<**String**> | | [optional]
|
||||
**offline_friends** | Option<**Vec<String>**> | | [optional]
|
||||
**online_friends** | Option<**Vec<String>**> | | [optional]
|
||||
**past_display_names** | [**Vec<crate::models::PastDisplayName>**](PastDisplayName.md) | |
|
||||
|
@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
||||
**author_id** | **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. |
|
||||
**author_name** | **String** | |
|
||||
**capacity** | **i32** | |
|
||||
**recommended_capacity** | Option<**i32**> | | [optional]
|
||||
**created_at** | **String** | |
|
||||
**favorites** | **i32** | | [default to 0]
|
||||
**heat** | **i32** | | [default to 0]
|
||||
@ -23,6 +24,7 @@ Name | Type | Description | Notes
|
||||
**thumbnail_image_url** | **String** | |
|
||||
**unity_packages** | [**Vec<crate::models::LimitedUnityPackage>**](LimitedUnityPackage.md) | |
|
||||
**updated_at** | **String** | |
|
||||
**udon_products** | Option<**Vec<String>**> | | [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)
|
||||
|
||||
|
@ -4,16 +4,18 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **String** | |
|
||||
**asset_url** | Option<**String**> | | [optional]
|
||||
**asset_url_object** | Option<[**serde_json::Value**](.md)> | | [optional]
|
||||
**asset_version** | **i32** | |
|
||||
**created_at** | Option<**String**> | | [optional]
|
||||
**id** | **String** | |
|
||||
**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]
|
||||
**unity_sort_number** | Option<**i64**> | | [optional]
|
||||
**unity_version** | **String** | | [default to 5.3.4p1]
|
||||
**impostor_url** | Option<**String**> | | [optional]
|
||||
**scan_status** | Option<**String**> | | [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)
|
||||
|
||||
|
@ -33,6 +33,7 @@ Name | Type | Description | Notes
|
||||
**updated_at** | **String** | |
|
||||
**version** | **i32** | | [default to 0]
|
||||
**visits** | **i32** | | [default to 0]
|
||||
**udon_products** | Option<**Vec<String>**> | | [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)
|
||||
|
||||
|
@ -40,6 +40,8 @@ pub struct CurrentUser {
|
||||
/// When profilePicOverride is not empty, use it instead.
|
||||
#[serde(rename = "currentAvatarThumbnailImageUrl")]
|
||||
pub current_avatar_thumbnail_image_url: String,
|
||||
#[serde(rename = "currentAvatarTags", skip_serializing_if = "Option::is_none")]
|
||||
pub current_avatar_tags: Option<Vec<String>>,
|
||||
#[serde(rename = "date_joined")]
|
||||
pub date_joined: String,
|
||||
#[serde(rename = "developerType")]
|
||||
@ -59,6 +61,12 @@ pub struct CurrentUser {
|
||||
pub friends: Vec<String>,
|
||||
#[serde(rename = "hasBirthday")]
|
||||
pub has_birthday: bool,
|
||||
#[serde(rename = "hideContentFilterSettings", skip_serializing_if = "Option::is_none")]
|
||||
pub hide_content_filter_settings: Option<bool>,
|
||||
#[serde(rename = "userLanguage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub user_language: Option<Option<String>>,
|
||||
#[serde(rename = "userLanguageCode", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub user_language_code: Option<Option<String>>,
|
||||
#[serde(rename = "hasEmail")]
|
||||
pub has_email: bool,
|
||||
#[serde(rename = "hasLoggedInFromClient")]
|
||||
@ -86,6 +94,12 @@ pub struct CurrentUser {
|
||||
pub obfuscated_pending_email: String,
|
||||
#[serde(rename = "oculusId")]
|
||||
pub oculus_id: String,
|
||||
#[serde(rename = "googleId", skip_serializing_if = "Option::is_none")]
|
||||
pub google_id: Option<String>,
|
||||
#[serde(rename = "picoId", skip_serializing_if = "Option::is_none")]
|
||||
pub pico_id: Option<String>,
|
||||
#[serde(rename = "viveId", skip_serializing_if = "Option::is_none")]
|
||||
pub vive_id: Option<String>,
|
||||
#[serde(rename = "offlineFriends", skip_serializing_if = "Option::is_none")]
|
||||
pub offline_friends: Option<Vec<String>>,
|
||||
#[serde(rename = "onlineFriends", skip_serializing_if = "Option::is_none")]
|
||||
@ -143,6 +157,7 @@ impl CurrentUser {
|
||||
current_avatar_asset_url,
|
||||
current_avatar_image_url,
|
||||
current_avatar_thumbnail_image_url,
|
||||
current_avatar_tags: None,
|
||||
date_joined,
|
||||
developer_type,
|
||||
display_name,
|
||||
@ -152,6 +167,9 @@ impl CurrentUser {
|
||||
friend_key,
|
||||
friends,
|
||||
has_birthday,
|
||||
hide_content_filter_settings: None,
|
||||
user_language: None,
|
||||
user_language_code: None,
|
||||
has_email,
|
||||
has_logged_in_from_client,
|
||||
has_pending_email,
|
||||
@ -164,6 +182,9 @@ impl CurrentUser {
|
||||
obfuscated_email,
|
||||
obfuscated_pending_email,
|
||||
oculus_id,
|
||||
google_id: None,
|
||||
pico_id: None,
|
||||
vive_id: None,
|
||||
offline_friends: None,
|
||||
online_friends: None,
|
||||
past_display_names,
|
||||
|
@ -19,6 +19,8 @@ pub struct LimitedWorld {
|
||||
pub author_name: String,
|
||||
#[serde(rename = "capacity")]
|
||||
pub capacity: i32,
|
||||
#[serde(rename = "recommendedCapacity", skip_serializing_if = "Option::is_none")]
|
||||
pub recommended_capacity: Option<i32>,
|
||||
#[serde(rename = "created_at")]
|
||||
pub created_at: String,
|
||||
#[serde(rename = "favorites")]
|
||||
@ -54,6 +56,8 @@ pub struct LimitedWorld {
|
||||
pub unity_packages: Vec<crate::models::LimitedUnityPackage>,
|
||||
#[serde(rename = "updated_at")]
|
||||
pub updated_at: String,
|
||||
#[serde(rename = "udonProducts", skip_serializing_if = "Option::is_none")]
|
||||
pub udon_products: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl LimitedWorld {
|
||||
@ -63,6 +67,7 @@ impl LimitedWorld {
|
||||
author_id,
|
||||
author_name,
|
||||
capacity,
|
||||
recommended_capacity: None,
|
||||
created_at,
|
||||
favorites,
|
||||
heat,
|
||||
@ -79,6 +84,7 @@ impl LimitedWorld {
|
||||
thumbnail_image_url,
|
||||
unity_packages,
|
||||
updated_at,
|
||||
udon_products: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,16 +12,16 @@
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct UnityPackage {
|
||||
#[serde(rename = "assetUrl", skip_serializing_if = "Option::is_none")]
|
||||
pub asset_url: Option<String>,
|
||||
#[serde(rename = "id")]
|
||||
pub id: String,
|
||||
#[serde(rename = "assetUrl", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub asset_url: Option<Option<String>>,
|
||||
#[serde(rename = "assetUrlObject", skip_serializing_if = "Option::is_none")]
|
||||
pub asset_url_object: Option<serde_json::Value>,
|
||||
#[serde(rename = "assetVersion")]
|
||||
pub asset_version: i32,
|
||||
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||||
pub created_at: Option<String>,
|
||||
#[serde(rename = "id")]
|
||||
pub id: 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,
|
||||
@ -33,22 +33,28 @@ pub struct UnityPackage {
|
||||
pub unity_sort_number: Option<i64>,
|
||||
#[serde(rename = "unityVersion")]
|
||||
pub unity_version: String,
|
||||
#[serde(rename = "impostorUrl", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub impostor_url: Option<Option<String>>,
|
||||
#[serde(rename = "scanStatus", skip_serializing_if = "Option::is_none")]
|
||||
pub scan_status: Option<String>,
|
||||
}
|
||||
|
||||
impl UnityPackage {
|
||||
///
|
||||
pub fn new(asset_version: i32, id: String, platform: String, unity_version: String) -> UnityPackage {
|
||||
pub fn new(id: String, asset_version: i32, platform: String, unity_version: String) -> UnityPackage {
|
||||
UnityPackage {
|
||||
id,
|
||||
asset_url: None,
|
||||
asset_url_object: None,
|
||||
asset_version,
|
||||
created_at: None,
|
||||
id,
|
||||
platform,
|
||||
plugin_url: None,
|
||||
plugin_url_object: None,
|
||||
unity_sort_number: None,
|
||||
unity_version,
|
||||
impostor_url: None,
|
||||
scan_status: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -78,6 +78,8 @@ pub struct World {
|
||||
pub version: i32,
|
||||
#[serde(rename = "visits")]
|
||||
pub visits: i32,
|
||||
#[serde(rename = "udonProducts", skip_serializing_if = "Option::is_none")]
|
||||
pub udon_products: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl World {
|
||||
@ -113,6 +115,7 @@ impl World {
|
||||
updated_at,
|
||||
version,
|
||||
visits,
|
||||
udon_products: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user