mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Generate Rust SDK with openapi generator 6.2.1
This commit is contained in:
@ -1 +1 @@
|
||||
5.3.0
|
||||
6.2.1
|
10
Cargo.toml
10
Cargo.toml
@ -1,16 +1,16 @@
|
||||
[package]
|
||||
name = "vrchatapi"
|
||||
version = "1.9.1"
|
||||
authors = ["OpenAPI Generator team and contributors"]
|
||||
license = "MIT"
|
||||
authors = ["me@ariesclark.com"]
|
||||
description = "VRChat API Client for Rust"
|
||||
license = "The MIT License (MIT)"
|
||||
edition = "2018"
|
||||
description="VRChat API Library for Rust"
|
||||
|
||||
[dependencies]
|
||||
serde = "^1.0"
|
||||
serde_derive = "^1.0"
|
||||
serde_with = "^2.0"
|
||||
serde_json = "^1.0"
|
||||
url = "^2.2"
|
||||
uuid = { version = "^1.0", features = ["serde"] }
|
||||
reqwest = "~0.9"
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
||||
**r#type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
||||
**favorite_id** | **String** | Must be either AvatarID, WorldID or UserID. |
|
||||
**tags** | **Vec<String>** | Tags indicate which group this favorite belongs to. Adding multiple groups makes it show up in all. Removing it from one in that case removes it from all. |
|
||||
|
||||
|
@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
||||
**image_url** | **String** | |
|
||||
**name** | **String** | |
|
||||
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**thumbnail_image_url** | **String** | |
|
||||
**unity_package_url** | **String** | |
|
||||
**unity_package_url_object** | [**crate::models::AvatarUnityPackageUrlObject**](Avatar_unityPackageUrlObject.md) | |
|
||||
|
@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
||||
**id** | Option<**String**> | | [optional]
|
||||
**name** | **String** | |
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**image_url** | **String** | |
|
||||
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
||||
**version** | Option<**f32**> | | [optional][default to 1]
|
||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | |
|
||||
**mime_type** | [**crate::models::MimeType**](MIMEType.md) | |
|
||||
**extension** | **String** | |
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**tags** | 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)
|
||||
|
||||
|
@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | |
|
||||
**platform** | 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`. | [optional]
|
||||
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**unity_package_url** | Option<**String**> | | [optional]
|
||||
**unity_version** | Option<**String**> | | [optional][default to 5.3.4p1]
|
||||
|
||||
|
@ -36,7 +36,7 @@ Name | Type | Description | Notes
|
||||
**oculus_id** | **String** | |
|
||||
**offline_friends** | Option<**Vec<String>**> | | [optional]
|
||||
**online_friends** | Option<**Vec<String>**> | | [optional]
|
||||
**past_display_names** | [**Vec<crate::models::PastDisplayName>**](PastDisplayName.md) | |
|
||||
**past_display_names** | [**Vec<crate::models::PastDisplayName>**](PastDisplayName.md) | |
|
||||
**profile_pic_override** | **String** | |
|
||||
**state** | [**crate::models::UserState**](UserState.md) | |
|
||||
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
||||
|
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
||||
**sort_order** | **String** | |
|
||||
**sort_ownership** | **String** | |
|
||||
**tag** | Option<**String**> | Tag to filter content for this row. | [optional]
|
||||
**_type** | Option<**String**> | Type is not present if it is a world. | [optional]
|
||||
**r#type** | Option<**String**> | Type is not present if it is a world. | [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
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**favorite_id** | **String** | MUST be either AvatarID, UserID or WorldID. |
|
||||
**id** | **String** | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**r#type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
||||
|
||||
[[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,8 +9,8 @@ Name | Type | Description | Notes
|
||||
**name** | **String** | |
|
||||
**owner_display_name** | **String** | |
|
||||
**owner_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. |
|
||||
**tags** | **Vec<String>** | |
|
||||
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**r#type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
|
||||
**visibility** | [**crate::models::FavoriteGroupVisibility**](FavoriteGroupVisibility.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -173,7 +173,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## get_favorites
|
||||
|
||||
> Vec<crate::models::Favorite> get_favorites(n, offset, _type, tag)
|
||||
> Vec<crate::models::Favorite> get_favorites(n, offset, r#type, tag)
|
||||
List Favorites
|
||||
|
||||
Returns a list of favorites.
|
||||
@ -185,7 +185,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. | |
|
||||
**_type** | Option<**String**> | The type of favorites to return, FavoriteType. | |
|
||||
**r#type** | Option<**String**> | The type of favorites to return, FavoriteType. | |
|
||||
**tag** | Option<**String**> | Tags to include (comma-separated). Any of the tags needs to be present. | |
|
||||
|
||||
### Return type
|
||||
|
@ -9,8 +9,8 @@ Name | Type | Description | Notes
|
||||
**mime_type** | [**crate::models::MimeType**](MIMEType.md) | |
|
||||
**name** | **String** | |
|
||||
**owner_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. |
|
||||
**tags** | **Vec<String>** | |
|
||||
**versions** | [**Vec<crate::models::FileVersion>**](FileVersion.md) | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**versions** | [**Vec<crate::models::FileVersion>**](FileVersion.md) | |
|
||||
|
||||
[[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,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**category** | **String** | | [default to Category_Queued]
|
||||
**category** | **String** | | [default to Queued]
|
||||
**file_name** | **String** | |
|
||||
**md5** | **String** | |
|
||||
**size_in_bytes** | **i32** | |
|
||||
|
@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
||||
**is_enabled** | **bool** | | [default to true]
|
||||
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
|
||||
**priority** | **i32** | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**data** | [**crate::models::InfoPushData**](InfoPushData.md) | |
|
||||
**hash** | **String** | Unknown usage, MD5 |
|
||||
**created_at** | **String** | |
|
||||
|
@ -22,7 +22,7 @@ Name | Type | Description | Notes
|
||||
**secure_name** | **String** | |
|
||||
**short_name** | Option<**String**> | | [optional]
|
||||
**tags** | **Vec<String>** | The tags array on Instances usually contain the language tags of the people in the instance. |
|
||||
**_type** | [**crate::models::InstanceType**](InstanceType.md) | |
|
||||
**r#type** | [**crate::models::InstanceType**](InstanceType.md) | |
|
||||
**world_id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. |
|
||||
**hidden** | 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]
|
||||
**friends** | 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]
|
||||
|
@ -19,9 +19,9 @@ Name | Type | Description | Notes
|
||||
**popularity** | **i32** | | [default to 0]
|
||||
**publication_date** | **String** | |
|
||||
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**thumbnail_image_url** | **String** | |
|
||||
**unity_packages** | [**Vec<crate::models::LimitedUnityPackage>**](LimitedUnityPackage.md) | |
|
||||
**unity_packages** | [**Vec<crate::models::LimitedUnityPackage>**](LimitedUnityPackage.md) | |
|
||||
**updated_at** | **String** | |
|
||||
|
||||
[[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,7 +5,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**moderated** | **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. |
|
||||
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
||||
**r#type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
||||
**seen** | **bool** | | [default to false]
|
||||
**sender_user_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. |
|
||||
**sender_username** | Option<**String**> | -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). | [optional]
|
||||
**_type** | [**crate::models::NotificationType**](NotificationType.md) | |
|
||||
**r#type** | [**crate::models::NotificationType**](NotificationType.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -101,7 +101,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## get_notifications
|
||||
|
||||
> Vec<crate::models::Notification> get_notifications(_type, sent, hidden, after, n, offset)
|
||||
> Vec<crate::models::Notification> get_notifications(r#type, sent, hidden, after, n, offset)
|
||||
List Notifications
|
||||
|
||||
Retrieve all of the current user's notifications.
|
||||
@ -111,7 +111,7 @@ Retrieve all of the current user's notifications.
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**_type** | Option<**String**> | Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated. | |
|
||||
**r#type** | Option<**String**> | Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated. | |
|
||||
**sent** | Option<**bool**> | Return notifications sent by the user. Must be false or omitted. | |
|
||||
**hidden** | Option<**bool**> | Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`. | |
|
||||
**after** | Option<**String**> | Only return notifications sent after this Date. Ignored if type is `friendRequest`. | |
|
||||
|
@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
||||
**source_user_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. |
|
||||
**target_display_name** | **String** | |
|
||||
**target_user_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. |
|
||||
**_type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
||||
**r#type** | [**crate::models::PlayerModerationType**](PlayerModerationType.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -102,7 +102,7 @@ Name | Type | Description | Required | Notes
|
||||
|
||||
## get_player_moderations
|
||||
|
||||
> Vec<crate::models::PlayerModeration> get_player_moderations(_type, target_user_id)
|
||||
> Vec<crate::models::PlayerModeration> get_player_moderations(r#type, target_user_id)
|
||||
Search Player Moderations
|
||||
|
||||
Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
|
||||
@ -112,7 +112,7 @@ Returns a list of all player moderations made by **you**. This endpoint does no
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**_type** | Option<**String**> | Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block. | |
|
||||
**r#type** | Option<**String**> | Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block. | |
|
||||
**target_user_id** | Option<**String**> | Must be valid UserID. | |
|
||||
|
||||
### Return type
|
||||
|
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
||||
**reciever_user_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. |
|
||||
**sender_user_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. |
|
||||
**sender_username** | Option<**String**> | -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). | [optional]
|
||||
**_type** | [**crate::models::NotificationType**](NotificationType.md) | |
|
||||
**r#type** | [**crate::models::NotificationType**](NotificationType.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
||||
**id** | Option<**String**> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**description** | Option<**String**> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**image_url** | Option<**String**> | | [optional]
|
||||
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
||||
**version** | Option<**f32**> | | [optional][default to 1]
|
||||
|
@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**email** | Option<**String**> | | [optional]
|
||||
**birthday** | Option<[**String**](string.md)> | | [optional]
|
||||
**accepted_tos_version** | Option<**f32**> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**status** | Option<[**crate::models::UserStatus**](UserStatus.md)> | | [optional]
|
||||
**status_description** | Option<**String**> | | [optional]
|
||||
**bio** | Option<**String**> | | [optional]
|
||||
|
@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**platform** | 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`. | [optional]
|
||||
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**tags** | Option<**Vec<String>**> | | [optional]
|
||||
**unity_package_url** | Option<**String**> | | [optional]
|
||||
**unity_version** | Option<**String**> | | [optional][default to 5.3.4p1]
|
||||
|
||||
|
@ -26,7 +26,7 @@ Name | Type | Description | Notes
|
||||
**state** | [**crate::models::UserState**](UserState.md) | |
|
||||
**status** | [**crate::models::UserStatus**](UserStatus.md) | |
|
||||
**status_description** | **String** | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**traveling_to_instance** | Option<**String**> | | [optional]
|
||||
**traveling_to_location** | Option<**String**> | | [optional]
|
||||
**traveling_to_world** | Option<**String**> | | [optional]
|
||||
|
@ -26,7 +26,7 @@ Name | Type | Description | Notes
|
||||
**public_occupants** | Option<**i32**> | Will always be `0` when unauthenticated. | [optional][default to 0]
|
||||
**publication_date** | **String** | |
|
||||
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**tags** | **Vec<String>** | |
|
||||
**thumbnail_image_url** | **String** | |
|
||||
**unity_packages** | [**Vec<crate::models::UnityPackage>**](UnityPackage.md) | Empty if unauthenticated. |
|
||||
**updated_at** | **String** | |
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
use reqwest;
|
||||
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Configuration {
|
||||
pub base_path: String,
|
||||
@ -29,6 +30,7 @@ pub struct ApiKey {
|
||||
pub key: String,
|
||||
}
|
||||
|
||||
|
||||
impl Configuration {
|
||||
pub fn new() -> Configuration {
|
||||
Configuration::default()
|
||||
@ -45,6 +47,7 @@ impl Default for Configuration {
|
||||
oauth_access_token: None,
|
||||
bearer_access_token: None,
|
||||
api_key: None,
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ pub fn get_favorite_groups(configuration: &configuration::Configuration, n: Opti
|
||||
}
|
||||
|
||||
/// Returns a list of favorites.
|
||||
pub fn get_favorites(configuration: &configuration::Configuration, n: Option<i32>, offset: Option<i32>, _type: Option<&str>, tag: Option<&str>) -> Result<Vec<crate::models::Favorite>, Error<GetFavoritesError>> {
|
||||
pub fn get_favorites(configuration: &configuration::Configuration, n: Option<i32>, offset: Option<i32>, r#type: Option<&str>, tag: Option<&str>) -> Result<Vec<crate::models::Favorite>, Error<GetFavoritesError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -243,7 +243,7 @@ pub fn get_favorites(configuration: &configuration::Configuration, n: Option<i32
|
||||
if let Some(ref local_var_str) = offset {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("offset", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = _type {
|
||||
if let Some(ref local_var_str) = r#type {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("type", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = tag {
|
||||
|
@ -140,7 +140,7 @@ pub fn delete_notification(configuration: &configuration::Configuration, notific
|
||||
}
|
||||
|
||||
/// Retrieve all of the current user's notifications.
|
||||
pub fn get_notifications(configuration: &configuration::Configuration, _type: Option<&str>, sent: Option<bool>, hidden: Option<bool>, after: Option<&str>, n: Option<i32>, offset: Option<i32>) -> Result<Vec<crate::models::Notification>, Error<GetNotificationsError>> {
|
||||
pub fn get_notifications(configuration: &configuration::Configuration, r#type: Option<&str>, sent: Option<bool>, hidden: Option<bool>, after: Option<&str>, n: Option<i32>, offset: Option<i32>) -> Result<Vec<crate::models::Notification>, Error<GetNotificationsError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -148,7 +148,7 @@ pub fn get_notifications(configuration: &configuration::Configuration, _type: Op
|
||||
let local_var_uri_str = format!("{}/auth/user/notifications", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = _type {
|
||||
if let Some(ref local_var_str) = r#type {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("type", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = sent {
|
||||
|
@ -149,7 +149,7 @@ pub fn get_player_moderation(configuration: &configuration::Configuration, playe
|
||||
}
|
||||
|
||||
/// Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
|
||||
pub fn get_player_moderations(configuration: &configuration::Configuration, _type: Option<&str>, target_user_id: Option<&str>) -> Result<Vec<crate::models::PlayerModeration>, Error<GetPlayerModerationsError>> {
|
||||
pub fn get_player_moderations(configuration: &configuration::Configuration, r#type: Option<&str>, target_user_id: Option<&str>) -> Result<Vec<crate::models::PlayerModeration>, Error<GetPlayerModerationsError>> {
|
||||
let local_var_configuration = configuration;
|
||||
|
||||
let local_var_client = &local_var_configuration.client;
|
||||
@ -157,7 +157,7 @@ pub fn get_player_moderations(configuration: &configuration::Configuration, _typ
|
||||
let local_var_uri_str = format!("{}/auth/user/playermoderations", local_var_configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_str) = _type {
|
||||
if let Some(ref local_var_str) = r#type {
|
||||
local_var_req_builder = local_var_req_builder.query(&[("type", &local_var_str.to_string())]);
|
||||
}
|
||||
if let Some(ref local_var_str) = target_user_id {
|
||||
|
@ -12,7 +12,7 @@
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct AddFavoriteRequest {
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::FavoriteType,
|
||||
pub r#type: crate::models::FavoriteType,
|
||||
/// Must be either AvatarID, WorldID or UserID.
|
||||
#[serde(rename = "favoriteId")]
|
||||
pub favorite_id: String,
|
||||
@ -22,9 +22,9 @@ pub struct AddFavoriteRequest {
|
||||
}
|
||||
|
||||
impl AddFavoriteRequest {
|
||||
pub fn new(_type: crate::models::FavoriteType, favorite_id: String, tags: Vec<String>) -> AddFavoriteRequest {
|
||||
pub fn new(r#type: crate::models::FavoriteType, favorite_id: String, tags: Vec<String>) -> AddFavoriteRequest {
|
||||
AddFavoriteRequest {
|
||||
_type,
|
||||
r#type,
|
||||
favorite_id,
|
||||
tags,
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// ApiConfig :
|
||||
|
||||
|
||||
|
||||
@ -250,6 +251,7 @@ pub struct ApiConfig {
|
||||
}
|
||||
|
||||
impl ApiConfig {
|
||||
///
|
||||
pub fn new(voice_enable_degradation: bool, voice_enable_receiver_limiting: bool, address: String, announcements: Vec<crate::models::PublicAnnouncement>, api_key: String, app_name: String, build_version_tag: String, client_api_key: String, client_bps_ceiling: i32, client_disconnect_timeout: i32, client_reserved_player_bps: i32, client_sent_count_allowance: i32, contact_email: String, copyright_email: String, current_tos_version: i32, default_avatar: String, deployment_group: crate::models::DeploymentGroup, dev_app_version_standalone: String, dev_download_link_windows: String, dev_sdk_url: String, dev_sdk_version: String, dev_server_version_standalone: String, dis_countdown: String, disable_avatar_copying: bool, disable_avatar_gating: bool, disable_community_labs: bool, disable_community_labs_promotion: bool, disable_email: bool, disable_event_stream: bool, disable_feedback_gating: bool, disable_frontend_builds: bool, disable_hello: bool, disable_oculus_subs: bool, disable_registration: bool, disable_steam_networking: bool, disable_two_factor_auth: bool, disable_udon: bool, disable_upgrade_account: bool, download_link_windows: String, download_urls: crate::models::DownloadUrlList, dynamic_world_rows: Vec<crate::models::DynamicContentRow>, events: crate::models::ApiEventConfig, gear_demo_room_id: String, home_world_id: String, homepage_redirect_target: String, hub_world_id: String, jobs_email: String, message_of_the_day: String, moderation_email: String, moderation_query_period: i32, not_allowed_to_select_avatar_in_private_world_message: String, plugin: String, release_app_version_standalone: String, release_sdk_url: String, release_sdk_version: String, release_server_version_standalone: String, sdk_developer_faq_url: String, sdk_discord_url: String, sdk_not_allowed_to_publish_message: String, sdk_unity_version: String, server_name: String, support_email: String, time_out_world_id: String, tutorial_world_id: String, update_rate_ms_maximum: i32, update_rate_ms_minimum: i32, update_rate_ms_normal: i32, update_rate_ms_udon_manual: i32, upload_analysis_percent: i32, url_list: Vec<String>, use_reliable_udp_for_voice: bool, user_update_period: i32, user_verification_delay: i32, user_verification_retry: i32, user_verification_timeout: i32, vive_windows_url: String, white_listed_asset_urls: Vec<String>, world_update_period: i32, player_url_resolver_hash: String, player_url_resolver_version: String) -> ApiConfig {
|
||||
ApiConfig {
|
||||
voice_enable_degradation,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// Avatar :
|
||||
|
||||
|
||||
|
||||
@ -36,6 +37,7 @@ pub struct Avatar {
|
||||
pub name: String,
|
||||
#[serde(rename = "releaseStatus")]
|
||||
pub release_status: crate::models::ReleaseStatus,
|
||||
///
|
||||
#[serde(rename = "tags")]
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "thumbnailImageUrl")]
|
||||
@ -53,6 +55,7 @@ pub struct Avatar {
|
||||
}
|
||||
|
||||
impl Avatar {
|
||||
///
|
||||
pub fn new(author_id: String, author_name: String, created_at: String, description: String, featured: bool, id: String, image_url: String, name: String, release_status: crate::models::ReleaseStatus, tags: Vec<String>, thumbnail_image_url: String, unity_package_url: String, unity_package_url_object: crate::models::AvatarUnityPackageUrlObject, unity_packages: Vec<crate::models::UnityPackage>, updated_at: String, version: i32) -> Avatar {
|
||||
Avatar {
|
||||
asset_url: None,
|
||||
|
@ -19,6 +19,7 @@ pub struct CreateAvatarRequest {
|
||||
pub name: String,
|
||||
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
|
||||
pub description: Option<String>,
|
||||
///
|
||||
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
||||
pub tags: Option<Vec<String>>,
|
||||
#[serde(rename = "imageUrl")]
|
||||
|
@ -17,6 +17,7 @@ pub struct CreateFileRequest {
|
||||
pub mime_type: crate::models::MimeType,
|
||||
#[serde(rename = "extension")]
|
||||
pub extension: String,
|
||||
///
|
||||
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
||||
pub tags: Option<Vec<String>>,
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ pub struct CreateWorldRequest {
|
||||
pub platform: Option<String>,
|
||||
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
|
||||
pub release_status: Option<crate::models::ReleaseStatus>,
|
||||
///
|
||||
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
||||
pub tags: Option<Vec<String>>,
|
||||
#[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")]
|
||||
|
@ -13,8 +13,8 @@
|
||||
pub struct CurrentUser {
|
||||
#[serde(rename = "acceptedTOSVersion")]
|
||||
pub accepted_tos_version: i32,
|
||||
#[serde(rename = "accountDeletionDate", skip_serializing_if = "Option::is_none")]
|
||||
pub account_deletion_date: Option<String>,
|
||||
#[serde(rename = "accountDeletionDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub account_deletion_date: Option<Option<String>>,
|
||||
#[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")]
|
||||
pub active_friends: Option<Vec<String>>,
|
||||
#[serde(rename = "allowAvatarCopying")]
|
||||
@ -81,6 +81,7 @@ pub struct CurrentUser {
|
||||
pub offline_friends: Option<Vec<String>>,
|
||||
#[serde(rename = "onlineFriends", skip_serializing_if = "Option::is_none")]
|
||||
pub online_friends: Option<Vec<String>>,
|
||||
///
|
||||
#[serde(rename = "pastDisplayNames")]
|
||||
pub past_display_names: Vec<crate::models::PastDisplayName>,
|
||||
#[serde(rename = "profilePicOverride")]
|
||||
@ -103,8 +104,8 @@ pub struct CurrentUser {
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "twoFactorAuthEnabled")]
|
||||
pub two_factor_auth_enabled: bool,
|
||||
#[serde(rename = "twoFactorAuthEnabledDate", skip_serializing_if = "Option::is_none")]
|
||||
pub two_factor_auth_enabled_date: Option<String>,
|
||||
#[serde(rename = "twoFactorAuthEnabledDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub two_factor_auth_enabled_date: Option<Option<String>>,
|
||||
#[serde(rename = "unsubscribe")]
|
||||
pub unsubscribe: bool,
|
||||
#[serde(rename = "userIcon")]
|
||||
|
@ -29,7 +29,7 @@ pub struct DynamicContentRow {
|
||||
pub tag: Option<String>,
|
||||
/// Type is not present if it is a world.
|
||||
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
|
||||
pub _type: Option<String>,
|
||||
pub r#type: Option<String>,
|
||||
}
|
||||
|
||||
impl DynamicContentRow {
|
||||
@ -42,7 +42,7 @@ impl DynamicContentRow {
|
||||
sort_order,
|
||||
sort_ownership,
|
||||
tag: None,
|
||||
_type: None,
|
||||
r#type: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// Favorite :
|
||||
|
||||
|
||||
|
||||
@ -16,19 +17,21 @@ pub struct Favorite {
|
||||
pub favorite_id: String,
|
||||
#[serde(rename = "id")]
|
||||
pub id: String,
|
||||
///
|
||||
#[serde(rename = "tags")]
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::FavoriteType,
|
||||
pub r#type: crate::models::FavoriteType,
|
||||
}
|
||||
|
||||
impl Favorite {
|
||||
pub fn new(favorite_id: String, id: String, tags: Vec<String>, _type: crate::models::FavoriteType) -> Favorite {
|
||||
///
|
||||
pub fn new(favorite_id: String, id: String, tags: Vec<String>, r#type: crate::models::FavoriteType) -> Favorite {
|
||||
Favorite {
|
||||
favorite_id,
|
||||
id,
|
||||
tags,
|
||||
_type,
|
||||
r#type,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// FavoriteGroup :
|
||||
|
||||
|
||||
|
||||
@ -22,16 +23,18 @@ pub struct FavoriteGroup {
|
||||
/// 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.
|
||||
#[serde(rename = "ownerId")]
|
||||
pub owner_id: String,
|
||||
///
|
||||
#[serde(rename = "tags")]
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::FavoriteType,
|
||||
pub r#type: crate::models::FavoriteType,
|
||||
#[serde(rename = "visibility")]
|
||||
pub visibility: crate::models::FavoriteGroupVisibility,
|
||||
}
|
||||
|
||||
impl FavoriteGroup {
|
||||
pub fn new(display_name: String, id: String, name: String, owner_display_name: String, owner_id: String, tags: Vec<String>, _type: crate::models::FavoriteType, visibility: crate::models::FavoriteGroupVisibility) -> FavoriteGroup {
|
||||
///
|
||||
pub fn new(display_name: String, id: String, name: String, owner_display_name: String, owner_id: String, tags: Vec<String>, r#type: crate::models::FavoriteType, visibility: crate::models::FavoriteGroupVisibility) -> FavoriteGroup {
|
||||
FavoriteGroup {
|
||||
display_name,
|
||||
id,
|
||||
@ -39,7 +42,7 @@ impl FavoriteGroup {
|
||||
owner_display_name,
|
||||
owner_id,
|
||||
tags,
|
||||
_type,
|
||||
r#type,
|
||||
visibility,
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// File :
|
||||
|
||||
|
||||
|
||||
@ -17,18 +18,22 @@ pub struct File {
|
||||
pub id: String,
|
||||
#[serde(rename = "mimeType")]
|
||||
pub mime_type: crate::models::MimeType,
|
||||
///
|
||||
#[serde(rename = "name")]
|
||||
pub name: 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.
|
||||
#[serde(rename = "ownerId")]
|
||||
pub owner_id: String,
|
||||
///
|
||||
#[serde(rename = "tags")]
|
||||
pub tags: Vec<String>,
|
||||
///
|
||||
#[serde(rename = "versions")]
|
||||
pub versions: Vec<crate::models::FileVersion>,
|
||||
}
|
||||
|
||||
impl File {
|
||||
///
|
||||
pub fn new(extension: String, id: String, mime_type: crate::models::MimeType, name: String, owner_id: String, tags: Vec<String>, versions: Vec<crate::models::FileVersion>) -> File {
|
||||
File {
|
||||
extension,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// FileData :
|
||||
|
||||
|
||||
|
||||
@ -28,6 +29,7 @@ pub struct FileData {
|
||||
}
|
||||
|
||||
impl FileData {
|
||||
///
|
||||
pub fn new(category: Category, file_name: String, md5: String, size_in_bytes: i32, status: crate::models::FileStatus, upload_id: String, url: String) -> FileData {
|
||||
FileData {
|
||||
category,
|
||||
|
@ -6,16 +6,19 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// FileUploadUrl :
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct FileUploadUrl {
|
||||
///
|
||||
#[serde(rename = "url")]
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
impl FileUploadUrl {
|
||||
///
|
||||
pub fn new(url: String) -> FileUploadUrl {
|
||||
FileUploadUrl {
|
||||
url,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// FileVersion :
|
||||
|
||||
|
||||
|
||||
@ -30,6 +31,7 @@ pub struct FileVersion {
|
||||
}
|
||||
|
||||
impl FileVersion {
|
||||
///
|
||||
pub fn new(created_at: String, status: crate::models::FileStatus, version: i32) -> FileVersion {
|
||||
FileVersion {
|
||||
created_at,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// FileVersionUploadStatus :
|
||||
|
||||
|
||||
|
||||
@ -27,6 +28,7 @@ pub struct FileVersionUploadStatus {
|
||||
}
|
||||
|
||||
impl FileVersionUploadStatus {
|
||||
///
|
||||
pub fn new(upload_id: String, file_name: String, next_part_number: f32, max_parts: f32, parts: Vec<serde_json::Value>, etags: Vec<serde_json::Value>) -> FileVersionUploadStatus {
|
||||
FileVersionUploadStatus {
|
||||
upload_id,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// FinishFileDataUploadRequest :
|
||||
|
||||
|
||||
|
||||
@ -23,6 +24,7 @@ pub struct FinishFileDataUploadRequest {
|
||||
}
|
||||
|
||||
impl FinishFileDataUploadRequest {
|
||||
///
|
||||
pub fn new(next_part_number: String, max_parts: String) -> FinishFileDataUploadRequest {
|
||||
FinishFileDataUploadRequest {
|
||||
etags: None,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// InfoPush :
|
||||
|
||||
|
||||
|
||||
@ -19,6 +20,7 @@ pub struct InfoPush {
|
||||
pub release_status: crate::models::ReleaseStatus,
|
||||
#[serde(rename = "priority")]
|
||||
pub priority: i32,
|
||||
///
|
||||
#[serde(rename = "tags")]
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "data")]
|
||||
@ -30,6 +32,7 @@ pub struct InfoPush {
|
||||
pub created_at: String,
|
||||
#[serde(rename = "updatedAt")]
|
||||
pub updated_at: String,
|
||||
///
|
||||
#[serde(rename = "startDate", skip_serializing_if = "Option::is_none")]
|
||||
pub start_date: Option<String>,
|
||||
#[serde(rename = "endDate", skip_serializing_if = "Option::is_none")]
|
||||
@ -37,6 +40,7 @@ pub struct InfoPush {
|
||||
}
|
||||
|
||||
impl InfoPush {
|
||||
///
|
||||
pub fn new(id: String, is_enabled: bool, release_status: crate::models::ReleaseStatus, priority: i32, tags: Vec<String>, data: crate::models::InfoPushData, hash: String, created_at: String, updated_at: String) -> InfoPush {
|
||||
InfoPush {
|
||||
id,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// InfoPushData :
|
||||
|
||||
|
||||
|
||||
@ -30,6 +31,7 @@ pub struct InfoPushData {
|
||||
}
|
||||
|
||||
impl InfoPushData {
|
||||
///
|
||||
pub fn new() -> InfoPushData {
|
||||
InfoPushData {
|
||||
content_list: None,
|
||||
|
@ -31,9 +31,9 @@ impl InfoPushDataClickable {
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||
pub enum Command {
|
||||
#[serde(rename = "OpenURL")]
|
||||
OpenURL,
|
||||
OpenUrl,
|
||||
#[serde(rename = "OpenVRCPlusMenu")]
|
||||
OpenVRCPlusMenu,
|
||||
OpenVrcPlusMenu,
|
||||
#[serde(rename = "OpenSafetyMenu")]
|
||||
OpenSafetyMenu,
|
||||
#[serde(rename = "CannedWorldSearch")]
|
||||
@ -42,7 +42,7 @@ pub enum Command {
|
||||
|
||||
impl Default for Command {
|
||||
fn default() -> Command {
|
||||
Self::OpenURL
|
||||
Self::OpenUrl
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ pub struct Instance {
|
||||
#[serde(rename = "tags")]
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::InstanceType,
|
||||
pub r#type: crate::models::InstanceType,
|
||||
/// WorldID be \"offline\" on User profiles if you are not friends with that user.
|
||||
#[serde(rename = "worldId")]
|
||||
pub world_id: String,
|
||||
@ -71,7 +71,7 @@ pub struct Instance {
|
||||
|
||||
impl Instance {
|
||||
/// * `hidden` field is only present if InstanceType is `hidden` aka \"Friends+\", and is instance creator. * `friends` field is only present if InstanceType is `friends` aka \"Friends\", and is instance creator. * `private` field is only present if InstanceType is `private` aka \"Invite\" or \"Invite+\", and is instance creator.
|
||||
pub fn new(active: bool, can_request_invite: bool, capacity: i32, client_number: String, full: bool, id: String, instance_id: String, location: String, n_users: i32, name: String, permanent: bool, photon_region: crate::models::Region, platforms: crate::models::InstancePlatforms, region: crate::models::Region, secure_name: String, tags: Vec<String>, _type: crate::models::InstanceType, world_id: String) -> Instance {
|
||||
pub fn new(active: bool, can_request_invite: bool, capacity: i32, client_number: String, full: bool, id: String, instance_id: String, location: String, n_users: i32, name: String, permanent: bool, photon_region: crate::models::Region, platforms: crate::models::InstancePlatforms, region: crate::models::Region, secure_name: String, tags: Vec<String>, r#type: crate::models::InstanceType, world_id: String) -> Instance {
|
||||
Instance {
|
||||
active,
|
||||
can_request_invite,
|
||||
@ -91,7 +91,7 @@ impl Instance {
|
||||
secure_name,
|
||||
short_name: None,
|
||||
tags,
|
||||
_type,
|
||||
r#type,
|
||||
world_id,
|
||||
hidden: None,
|
||||
friends: None,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// InstanceType :
|
||||
|
||||
///
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// InviteMessage :
|
||||
|
||||
|
||||
|
||||
@ -29,6 +30,7 @@ pub struct InviteMessage {
|
||||
}
|
||||
|
||||
impl InviteMessage {
|
||||
///
|
||||
pub fn new(can_be_updated: bool, id: String, message: String, message_type: crate::models::InviteMessageType, remaining_cooldown_minutes: i32, slot: i32, updated_at: String) -> InviteMessage {
|
||||
InviteMessage {
|
||||
can_be_updated,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// InviteMessageType :
|
||||
|
||||
///
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// LicenseGroup :
|
||||
|
||||
|
||||
|
||||
@ -22,6 +23,7 @@ pub struct LicenseGroup {
|
||||
}
|
||||
|
||||
impl LicenseGroup {
|
||||
///
|
||||
pub fn new(id: String, name: String, description: String, licenses: Vec<crate::models::License>) -> LicenseGroup {
|
||||
LicenseGroup {
|
||||
id,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// LimitedUnityPackage :
|
||||
|
||||
|
||||
|
||||
@ -19,6 +20,7 @@ pub struct LimitedUnityPackage {
|
||||
}
|
||||
|
||||
impl LimitedUnityPackage {
|
||||
///
|
||||
pub fn new(platform: String, unity_version: String) -> LimitedUnityPackage {
|
||||
LimitedUnityPackage {
|
||||
platform,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// LimitedUser :
|
||||
|
||||
|
||||
|
||||
@ -54,6 +55,7 @@ pub struct LimitedUser {
|
||||
}
|
||||
|
||||
impl LimitedUser {
|
||||
///
|
||||
pub fn new(current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, developer_type: crate::models::DeveloperType, display_name: String, fallback_avatar: String, id: String, is_friend: bool, last_platform: String, profile_pic_override: String, status: crate::models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String) -> LimitedUser {
|
||||
LimitedUser {
|
||||
bio: None,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// LimitedWorld :
|
||||
|
||||
|
||||
|
||||
@ -43,10 +44,12 @@ pub struct LimitedWorld {
|
||||
pub publication_date: String,
|
||||
#[serde(rename = "releaseStatus")]
|
||||
pub release_status: crate::models::ReleaseStatus,
|
||||
///
|
||||
#[serde(rename = "tags")]
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "thumbnailImageUrl")]
|
||||
pub thumbnail_image_url: String,
|
||||
///
|
||||
#[serde(rename = "unityPackages")]
|
||||
pub unity_packages: Vec<crate::models::LimitedUnityPackage>,
|
||||
#[serde(rename = "updated_at")]
|
||||
@ -54,6 +57,7 @@ pub struct LimitedWorld {
|
||||
}
|
||||
|
||||
impl LimitedWorld {
|
||||
///
|
||||
pub fn new(author_id: String, author_name: String, capacity: i32, created_at: String, favorites: i32, heat: i32, id: String, image_url: String, labs_publication_date: String, name: String, occupants: i32, organization: String, popularity: i32, publication_date: String, release_status: crate::models::ReleaseStatus, tags: Vec<String>, thumbnail_image_url: String, unity_packages: Vec<crate::models::LimitedUnityPackage>, updated_at: String) -> LimitedWorld {
|
||||
LimitedWorld {
|
||||
author_id,
|
||||
|
@ -11,60 +11,60 @@
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||
pub enum MimeType {
|
||||
#[serde(rename = "image/jpeg")]
|
||||
ImageJpeg,
|
||||
ImageSlashJpeg,
|
||||
#[serde(rename = "image/jpg")]
|
||||
ImageJpg,
|
||||
ImageSlashJpg,
|
||||
#[serde(rename = "image/png")]
|
||||
ImagePng,
|
||||
ImageSlashPng,
|
||||
#[serde(rename = "image/webp")]
|
||||
ImageWebp,
|
||||
ImageSlashWebp,
|
||||
#[serde(rename = "image/gif")]
|
||||
ImageGif,
|
||||
ImageSlashGif,
|
||||
#[serde(rename = "image/bmp")]
|
||||
ImageBmp,
|
||||
ImageSlashBmp,
|
||||
#[serde(rename = "image/svg+xml")]
|
||||
ImageSvgxml,
|
||||
ImageSlashSvgxml,
|
||||
#[serde(rename = "image/tiff")]
|
||||
ImageTiff,
|
||||
ImageSlashTiff,
|
||||
#[serde(rename = "application/x-avatar")]
|
||||
ApplicationXAvatar,
|
||||
ApplicationSlashXAvatar,
|
||||
#[serde(rename = "application/x-world")]
|
||||
ApplicationXWorld,
|
||||
ApplicationSlashXWorld,
|
||||
#[serde(rename = "application/gzip")]
|
||||
ApplicationGzip,
|
||||
ApplicationSlashGzip,
|
||||
#[serde(rename = "application/x-rsync-signature")]
|
||||
ApplicationXRsyncSignature,
|
||||
ApplicationSlashXRsyncSignature,
|
||||
#[serde(rename = "application/x-rsync-delta")]
|
||||
ApplicationXRsyncDelta,
|
||||
ApplicationSlashXRsyncDelta,
|
||||
#[serde(rename = "application/octet-stream")]
|
||||
ApplicationOctetStream,
|
||||
ApplicationSlashOctetStream,
|
||||
|
||||
}
|
||||
|
||||
impl ToString for MimeType {
|
||||
fn to_string(&self) -> String {
|
||||
match self {
|
||||
Self::ImageJpeg => String::from("image/jpeg"),
|
||||
Self::ImageJpg => String::from("image/jpg"),
|
||||
Self::ImagePng => String::from("image/png"),
|
||||
Self::ImageWebp => String::from("image/webp"),
|
||||
Self::ImageGif => String::from("image/gif"),
|
||||
Self::ImageBmp => String::from("image/bmp"),
|
||||
Self::ImageSvgxml => String::from("image/svg+xml"),
|
||||
Self::ImageTiff => String::from("image/tiff"),
|
||||
Self::ApplicationXAvatar => String::from("application/x-avatar"),
|
||||
Self::ApplicationXWorld => String::from("application/x-world"),
|
||||
Self::ApplicationGzip => String::from("application/gzip"),
|
||||
Self::ApplicationXRsyncSignature => String::from("application/x-rsync-signature"),
|
||||
Self::ApplicationXRsyncDelta => String::from("application/x-rsync-delta"),
|
||||
Self::ApplicationOctetStream => String::from("application/octet-stream"),
|
||||
Self::ImageSlashJpeg => String::from("image/jpeg"),
|
||||
Self::ImageSlashJpg => String::from("image/jpg"),
|
||||
Self::ImageSlashPng => String::from("image/png"),
|
||||
Self::ImageSlashWebp => String::from("image/webp"),
|
||||
Self::ImageSlashGif => String::from("image/gif"),
|
||||
Self::ImageSlashBmp => String::from("image/bmp"),
|
||||
Self::ImageSlashSvgxml => String::from("image/svg+xml"),
|
||||
Self::ImageSlashTiff => String::from("image/tiff"),
|
||||
Self::ApplicationSlashXAvatar => String::from("application/x-avatar"),
|
||||
Self::ApplicationSlashXWorld => String::from("application/x-world"),
|
||||
Self::ApplicationSlashGzip => String::from("application/gzip"),
|
||||
Self::ApplicationSlashXRsyncSignature => String::from("application/x-rsync-signature"),
|
||||
Self::ApplicationSlashXRsyncDelta => String::from("application/x-rsync-delta"),
|
||||
Self::ApplicationSlashOctetStream => String::from("application/octet-stream"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for MimeType {
|
||||
fn default() -> MimeType {
|
||||
Self::ImageJpeg
|
||||
Self::ImageSlashJpeg
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,14 +15,14 @@ pub struct ModerateUserRequest {
|
||||
#[serde(rename = "moderated")]
|
||||
pub moderated: String,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::PlayerModerationType,
|
||||
pub r#type: crate::models::PlayerModerationType,
|
||||
}
|
||||
|
||||
impl ModerateUserRequest {
|
||||
pub fn new(moderated: String, _type: crate::models::PlayerModerationType) -> ModerateUserRequest {
|
||||
pub fn new(moderated: String, r#type: crate::models::PlayerModerationType) -> ModerateUserRequest {
|
||||
ModerateUserRequest {
|
||||
moderated,
|
||||
_type,
|
||||
r#type,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// Notification :
|
||||
|
||||
|
||||
|
||||
@ -18,6 +19,7 @@ pub struct Notification {
|
||||
pub details: String,
|
||||
#[serde(rename = "id")]
|
||||
pub id: String,
|
||||
///
|
||||
#[serde(rename = "message")]
|
||||
pub message: String,
|
||||
#[serde(rename = "seen")]
|
||||
@ -29,11 +31,12 @@ pub struct Notification {
|
||||
#[serde(rename = "senderUsername", skip_serializing_if = "Option::is_none")]
|
||||
pub sender_username: Option<String>,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::NotificationType,
|
||||
pub r#type: crate::models::NotificationType,
|
||||
}
|
||||
|
||||
impl Notification {
|
||||
pub fn new(created_at: String, details: String, id: String, message: String, seen: bool, sender_user_id: String, _type: crate::models::NotificationType) -> Notification {
|
||||
///
|
||||
pub fn new(created_at: String, details: String, id: String, message: String, seen: bool, sender_user_id: String, r#type: crate::models::NotificationType) -> Notification {
|
||||
Notification {
|
||||
created_at,
|
||||
details,
|
||||
@ -42,7 +45,7 @@ impl Notification {
|
||||
seen,
|
||||
sender_user_id,
|
||||
sender_username: None,
|
||||
_type,
|
||||
r#type,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// Permission :
|
||||
|
||||
|
||||
|
||||
@ -23,6 +24,7 @@ pub struct Permission {
|
||||
}
|
||||
|
||||
impl Permission {
|
||||
///
|
||||
pub fn new(id: String, name: String, owner_id: String) -> Permission {
|
||||
Permission {
|
||||
id,
|
||||
|
@ -26,11 +26,11 @@ pub struct PlayerModeration {
|
||||
#[serde(rename = "targetUserId")]
|
||||
pub target_user_id: String,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::PlayerModerationType,
|
||||
pub r#type: crate::models::PlayerModerationType,
|
||||
}
|
||||
|
||||
impl PlayerModeration {
|
||||
pub fn new(created: String, id: String, source_display_name: String, source_user_id: String, target_display_name: String, target_user_id: String, _type: crate::models::PlayerModerationType) -> PlayerModeration {
|
||||
pub fn new(created: String, id: String, source_display_name: String, source_user_id: String, target_display_name: String, target_user_id: String, r#type: crate::models::PlayerModerationType) -> PlayerModeration {
|
||||
PlayerModeration {
|
||||
created,
|
||||
id,
|
||||
@ -38,7 +38,7 @@ impl PlayerModeration {
|
||||
source_user_id,
|
||||
target_display_name,
|
||||
target_user_id,
|
||||
_type,
|
||||
r#type,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ pub enum Region {
|
||||
#[serde(rename = "us")]
|
||||
Us,
|
||||
#[serde(rename = "use")]
|
||||
_Use,
|
||||
Use,
|
||||
#[serde(rename = "usw")]
|
||||
Usw,
|
||||
#[serde(rename = "eu")]
|
||||
@ -30,7 +30,7 @@ impl ToString for Region {
|
||||
fn to_string(&self) -> String {
|
||||
match self {
|
||||
Self::Us => String::from("us"),
|
||||
Self::_Use => String::from("use"),
|
||||
Self::Use => String::from("use"),
|
||||
Self::Usw => String::from("usw"),
|
||||
Self::Eu => String::from("eu"),
|
||||
Self::Jp => String::from("jp"),
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// SentNotification :
|
||||
|
||||
|
||||
|
||||
@ -18,6 +19,7 @@ pub struct SentNotification {
|
||||
pub details: String,
|
||||
#[serde(rename = "id")]
|
||||
pub id: String,
|
||||
///
|
||||
#[serde(rename = "message")]
|
||||
pub message: 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.
|
||||
@ -30,11 +32,12 @@ pub struct SentNotification {
|
||||
#[serde(rename = "senderUsername", skip_serializing_if = "Option::is_none")]
|
||||
pub sender_username: Option<String>,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: crate::models::NotificationType,
|
||||
pub r#type: crate::models::NotificationType,
|
||||
}
|
||||
|
||||
impl SentNotification {
|
||||
pub fn new(created_at: String, details: String, id: String, message: String, reciever_user_id: String, sender_user_id: String, _type: crate::models::NotificationType) -> SentNotification {
|
||||
///
|
||||
pub fn new(created_at: String, details: String, id: String, message: String, reciever_user_id: String, sender_user_id: String, r#type: crate::models::NotificationType) -> SentNotification {
|
||||
SentNotification {
|
||||
created_at,
|
||||
details,
|
||||
@ -43,7 +46,7 @@ impl SentNotification {
|
||||
reciever_user_id,
|
||||
sender_user_id,
|
||||
sender_username: None,
|
||||
_type,
|
||||
r#type,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// Subscription :
|
||||
|
||||
|
||||
|
||||
@ -26,6 +27,7 @@ pub struct Subscription {
|
||||
}
|
||||
|
||||
impl Subscription {
|
||||
///
|
||||
pub fn new(id: String, steam_item_id: String, amount: f32, description: String, period: crate::models::SubscriptionPeriod, tier: f32) -> Subscription {
|
||||
Subscription {
|
||||
id,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// Transaction :
|
||||
|
||||
|
||||
|
||||
@ -32,6 +33,7 @@ pub struct Transaction {
|
||||
}
|
||||
|
||||
impl Transaction {
|
||||
///
|
||||
pub fn new(id: String, status: crate::models::TransactionStatus, subscription: crate::models::Subscription, sandbox: bool, created_at: String, updated_at: String, error: String) -> Transaction {
|
||||
Transaction {
|
||||
id,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// TransactionAgreement :
|
||||
|
||||
|
||||
|
||||
@ -49,6 +50,7 @@ pub struct TransactionAgreement {
|
||||
}
|
||||
|
||||
impl TransactionAgreement {
|
||||
///
|
||||
pub fn new(agreement_id: String, item_id: f32, status: String, period: String, frequency: f32, billing_type: String, start_date: String, end_date: String, recurring_amt: f32, currency: String, time_created: String, next_payment: String, last_payment: String, last_amount: f32, last_amount_vat: f32, outstanding: f32, failed_attempts: f32) -> TransactionAgreement {
|
||||
TransactionAgreement {
|
||||
agreement_id,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// TransactionSteamInfo :
|
||||
|
||||
|
||||
|
||||
@ -28,6 +29,7 @@ pub struct TransactionSteamInfo {
|
||||
}
|
||||
|
||||
impl TransactionSteamInfo {
|
||||
///
|
||||
pub fn new(wallet_info: crate::models::TransactionSteamWalletInfo, steam_id: String, order_id: String, steam_url: String, trans_id: String) -> TransactionSteamInfo {
|
||||
TransactionSteamInfo {
|
||||
wallet_info: Box::new(wallet_info),
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// TransactionSteamWalletInfo :
|
||||
|
||||
|
||||
|
||||
@ -22,6 +23,7 @@ pub struct TransactionSteamWalletInfo {
|
||||
}
|
||||
|
||||
impl TransactionSteamWalletInfo {
|
||||
///
|
||||
pub fn new(state: String, country: String, currency: String, status: String) -> TransactionSteamWalletInfo {
|
||||
TransactionSteamWalletInfo {
|
||||
state,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// UnityPackage :
|
||||
|
||||
|
||||
|
||||
@ -35,6 +36,7 @@ pub struct UnityPackage {
|
||||
}
|
||||
|
||||
impl UnityPackage {
|
||||
///
|
||||
pub fn new(asset_version: i32, id: String, platform: String, unity_version: String) -> UnityPackage {
|
||||
UnityPackage {
|
||||
asset_url: None,
|
||||
|
@ -19,6 +19,7 @@ pub struct UpdateAvatarRequest {
|
||||
pub name: Option<String>,
|
||||
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
|
||||
pub description: Option<String>,
|
||||
///
|
||||
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
||||
pub tags: Option<Vec<String>>,
|
||||
#[serde(rename = "imageUrl", skip_serializing_if = "Option::is_none")]
|
||||
|
@ -17,6 +17,7 @@ pub struct UpdateUserRequest {
|
||||
pub birthday: Option<String>,
|
||||
#[serde(rename = "acceptedTOSVersion", skip_serializing_if = "Option::is_none")]
|
||||
pub accepted_tos_version: Option<f32>,
|
||||
///
|
||||
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
||||
pub tags: Option<Vec<String>>,
|
||||
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
|
||||
|
@ -33,6 +33,7 @@ pub struct UpdateWorldRequest {
|
||||
pub platform: Option<String>,
|
||||
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
|
||||
pub release_status: Option<crate::models::ReleaseStatus>,
|
||||
///
|
||||
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
|
||||
pub tags: Option<Vec<String>>,
|
||||
#[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")]
|
||||
|
@ -65,6 +65,7 @@ pub struct User {
|
||||
pub status: crate::models::UserStatus,
|
||||
#[serde(rename = "statusDescription")]
|
||||
pub status_description: String,
|
||||
///
|
||||
#[serde(rename = "tags")]
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "travelingToInstance", skip_serializing_if = "Option::is_none")]
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// UserSubscription :
|
||||
|
||||
|
||||
|
||||
@ -45,6 +46,7 @@ pub struct UserSubscription {
|
||||
}
|
||||
|
||||
impl UserSubscription {
|
||||
///
|
||||
pub fn new(id: String, transaction_id: String, store: String, amount: f32, description: String, period: crate::models::SubscriptionPeriod, tier: f32, active: bool, status: crate::models::TransactionStatus, expires: String, created_at: String, updated_at: String, license_groups: Vec<String>, is_gift: bool) -> UserSubscription {
|
||||
UserSubscription {
|
||||
id,
|
||||
|
@ -6,6 +6,7 @@
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// World :
|
||||
|
||||
|
||||
|
||||
@ -49,8 +50,8 @@ pub struct World {
|
||||
pub organization: String,
|
||||
#[serde(rename = "popularity")]
|
||||
pub popularity: i32,
|
||||
#[serde(rename = "previewYoutubeId", skip_serializing_if = "Option::is_none")]
|
||||
pub preview_youtube_id: Option<String>,
|
||||
#[serde(rename = "previewYoutubeId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub preview_youtube_id: Option<Option<String>>,
|
||||
/// Will always be `0` when unauthenticated.
|
||||
#[serde(rename = "privateOccupants", skip_serializing_if = "Option::is_none")]
|
||||
pub private_occupants: Option<i32>,
|
||||
@ -61,6 +62,7 @@ pub struct World {
|
||||
pub publication_date: String,
|
||||
#[serde(rename = "releaseStatus")]
|
||||
pub release_status: crate::models::ReleaseStatus,
|
||||
///
|
||||
#[serde(rename = "tags")]
|
||||
pub tags: Vec<String>,
|
||||
#[serde(rename = "thumbnailImageUrl")]
|
||||
@ -77,6 +79,7 @@ pub struct World {
|
||||
}
|
||||
|
||||
impl World {
|
||||
///
|
||||
pub fn new(author_id: String, author_name: String, capacity: i32, created_at: String, description: String, featured: bool, heat: i32, id: String, image_url: String, labs_publication_date: String, name: String, namespace: String, organization: String, popularity: i32, publication_date: String, release_status: crate::models::ReleaseStatus, tags: Vec<String>, thumbnail_image_url: String, unity_packages: Vec<crate::models::UnityPackage>, updated_at: String, version: i32, visits: i32) -> World {
|
||||
World {
|
||||
author_id,
|
||||
|
Reference in New Issue
Block a user