Generate Rust SDK with openapi generator 6.2.1

This commit is contained in:
Foorack / Max Faxälv
2022-12-04 20:34:03 +01:00
parent 531287545e
commit 71c93272ac
78 changed files with 194 additions and 111 deletions

View File

@ -1 +1 @@
5.3.0 6.2.1

View File

@ -1,16 +1,16 @@
[package] [package]
name = "vrchatapi" name = "vrchatapi"
version = "1.9.1" version = "1.9.1"
authors = ["OpenAPI Generator team and contributors"] authors = ["me@ariesclark.com"]
license = "MIT" description = "VRChat API Client for Rust"
license = "The MIT License (MIT)"
edition = "2018" edition = "2018"
description="VRChat API Library for Rust"
[dependencies] [dependencies]
serde = "^1.0" serde = "^1.0"
serde_derive = "^1.0" serde_derive = "^1.0"
serde_with = "^2.0"
serde_json = "^1.0" serde_json = "^1.0"
url = "^2.2" url = "^2.2"
uuid = { version = "^1.0", features = ["serde"] }
reqwest = "~0.9" reqwest = "~0.9"
[dev-dependencies]

View File

@ -4,7 +4,7 @@
Name | Type | Description | Notes 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. | **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. | **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. |

View File

@ -15,7 +15,7 @@ Name | Type | Description | Notes
**image_url** | **String** | | **image_url** | **String** | |
**name** | **String** | | **name** | **String** | |
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | | **release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
**tags** | **Vec<String>** | | **tags** | **Vec<String>** | |
**thumbnail_image_url** | **String** | | **thumbnail_image_url** | **String** | |
**unity_package_url** | **String** | | **unity_package_url** | **String** | |
**unity_package_url_object** | [**crate::models::AvatarUnityPackageUrlObject**](Avatar_unityPackageUrlObject.md) | | **unity_package_url_object** | [**crate::models::AvatarUnityPackageUrlObject**](Avatar_unityPackageUrlObject.md) | |

View File

@ -8,7 +8,7 @@ Name | Type | Description | Notes
**id** | Option<**String**> | | [optional] **id** | Option<**String**> | | [optional]
**name** | **String** | | **name** | **String** | |
**description** | Option<**String**> | | [optional] **description** | Option<**String**> | | [optional]
**tags** | Option<**Vec<String>**> | | [optional] **tags** | Option<**Vec<String>**> | | [optional]
**image_url** | **String** | | **image_url** | **String** | |
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional] **release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
**version** | Option<**f32**> | | [optional][default to 1] **version** | Option<**f32**> | | [optional][default to 1]

View File

@ -7,7 +7,7 @@ Name | Type | Description | Notes
**name** | **String** | | **name** | **String** | |
**mime_type** | [**crate::models::MimeType**](MIMEType.md) | | **mime_type** | [**crate::models::MimeType**](MIMEType.md) | |
**extension** | **String** | | **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -15,7 +15,7 @@ Name | Type | Description | Notes
**name** | **String** | | **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] **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] **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_package_url** | Option<**String**> | | [optional]
**unity_version** | Option<**String**> | | [optional][default to 5.3.4p1] **unity_version** | Option<**String**> | | [optional][default to 5.3.4p1]

View File

@ -36,7 +36,7 @@ Name | Type | Description | Notes
**oculus_id** | **String** | | **oculus_id** | **String** | |
**offline_friends** | Option<**Vec<String>**> | | [optional] **offline_friends** | Option<**Vec<String>**> | | [optional]
**online_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** | | **profile_pic_override** | **String** | |
**state** | [**crate::models::UserState**](UserState.md) | | **state** | [**crate::models::UserState**](UserState.md) | |
**status** | [**crate::models::UserStatus**](UserStatus.md) | | **status** | [**crate::models::UserStatus**](UserStatus.md) | |

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
**sort_order** | **String** | | **sort_order** | **String** | |
**sort_ownership** | **String** | | **sort_ownership** | **String** | |
**tag** | Option<**String**> | Tag to filter content for this row. | [optional] **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -6,8 +6,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**favorite_id** | **String** | MUST be either AvatarID, UserID or WorldID. | **favorite_id** | **String** | MUST be either AvatarID, UserID or WorldID. |
**id** | **String** | | **id** | **String** | |
**tags** | **Vec<String>** | | **tags** | **Vec<String>** | |
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | | **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -9,8 +9,8 @@ Name | Type | Description | Notes
**name** | **String** | | **name** | **String** | |
**owner_display_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. | **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>** | | **tags** | **Vec<String>** | |
**_type** | [**crate::models::FavoriteType**](FavoriteType.md) | | **r#type** | [**crate::models::FavoriteType**](FavoriteType.md) | |
**visibility** | [**crate::models::FavoriteGroupVisibility**](FavoriteGroupVisibility.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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -173,7 +173,7 @@ Name | Type | Description | Required | Notes
## get_favorites ## 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 List Favorites
Returns a list of 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] **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. | | **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. | | **tag** | Option<**String**> | Tags to include (comma-separated). Any of the tags needs to be present. | |
### Return type ### Return type

View File

@ -9,8 +9,8 @@ Name | Type | Description | Notes
**mime_type** | [**crate::models::MimeType**](MIMEType.md) | | **mime_type** | [**crate::models::MimeType**](MIMEType.md) | |
**name** | **String** | | **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. | **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>** | | **tags** | **Vec<String>** | |
**versions** | [**Vec<crate::models::FileVersion>**](FileVersion.md) | | **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -4,7 +4,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**category** | **String** | | [default to Category_Queued] **category** | **String** | | [default to Queued]
**file_name** | **String** | | **file_name** | **String** | |
**md5** | **String** | | **md5** | **String** | |
**size_in_bytes** | **i32** | | **size_in_bytes** | **i32** | |

View File

@ -8,7 +8,7 @@ Name | Type | Description | Notes
**is_enabled** | **bool** | | [default to true] **is_enabled** | **bool** | | [default to true]
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | | **release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
**priority** | **i32** | | **priority** | **i32** | |
**tags** | **Vec<String>** | | **tags** | **Vec<String>** | |
**data** | [**crate::models::InfoPushData**](InfoPushData.md) | | **data** | [**crate::models::InfoPushData**](InfoPushData.md) | |
**hash** | **String** | Unknown usage, MD5 | **hash** | **String** | Unknown usage, MD5 |
**created_at** | **String** | | **created_at** | **String** | |

View File

@ -22,7 +22,7 @@ Name | Type | Description | Notes
**secure_name** | **String** | | **secure_name** | **String** | |
**short_name** | Option<**String**> | | [optional] **short_name** | Option<**String**> | | [optional]
**tags** | **Vec<String>** | The tags array on Instances usually contain the language tags of the people in the instance. | **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. | **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] **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] **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]

View File

@ -19,9 +19,9 @@ Name | Type | Description | Notes
**popularity** | **i32** | | [default to 0] **popularity** | **i32** | | [default to 0]
**publication_date** | **String** | | **publication_date** | **String** | |
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | | **release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
**tags** | **Vec<String>** | | **tags** | **Vec<String>** | |
**thumbnail_image_url** | **String** | | **thumbnail_image_url** | **String** | |
**unity_packages** | [**Vec<crate::models::LimitedUnityPackage>**](LimitedUnityPackage.md) | | **unity_packages** | [**Vec<crate::models::LimitedUnityPackage>**](LimitedUnityPackage.md) | |
**updated_at** | **String** | | **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes 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. | **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
**seen** | **bool** | | [default to false] **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_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] **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -101,7 +101,7 @@ Name | Type | Description | Required | Notes
## get_notifications ## 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 List Notifications
Retrieve all of the current user's 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 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. | | **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`. | | **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`. | | **after** | Option<**String**> | Only return notifications sent after this Date. Ignored if type is `friendRequest`. | |

View File

@ -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. | **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_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. | **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -102,7 +102,7 @@ Name | Type | Description | Required | Notes
## get_player_moderations ## 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 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. 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 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. | | **target_user_id** | Option<**String**> | Must be valid UserID. | |
### Return type ### Return type

View File

@ -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. | **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_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] **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -8,7 +8,7 @@ Name | Type | Description | Notes
**id** | Option<**String**> | | [optional] **id** | Option<**String**> | | [optional]
**name** | Option<**String**> | | [optional] **name** | Option<**String**> | | [optional]
**description** | Option<**String**> | | [optional] **description** | Option<**String**> | | [optional]
**tags** | Option<**Vec<String>**> | | [optional] **tags** | Option<**Vec<String>**> | | [optional]
**image_url** | Option<**String**> | | [optional] **image_url** | Option<**String**> | | [optional]
**release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional] **release_status** | Option<[**crate::models::ReleaseStatus**](ReleaseStatus.md)> | | [optional]
**version** | Option<**f32**> | | [optional][default to 1] **version** | Option<**f32**> | | [optional][default to 1]

View File

@ -7,7 +7,7 @@ Name | Type | Description | Notes
**email** | Option<**String**> | | [optional] **email** | Option<**String**> | | [optional]
**birthday** | Option<[**String**](string.md)> | | [optional] **birthday** | Option<[**String**](string.md)> | | [optional]
**accepted_tos_version** | Option<**f32**> | | [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** | Option<[**crate::models::UserStatus**](UserStatus.md)> | | [optional]
**status_description** | Option<**String**> | | [optional] **status_description** | Option<**String**> | | [optional]
**bio** | Option<**String**> | | [optional] **bio** | Option<**String**> | | [optional]

View File

@ -14,7 +14,7 @@ Name | Type | Description | Notes
**name** | Option<**String**> | | [optional] **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] **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] **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_package_url** | Option<**String**> | | [optional]
**unity_version** | Option<**String**> | | [optional][default to 5.3.4p1] **unity_version** | Option<**String**> | | [optional][default to 5.3.4p1]

View File

@ -26,7 +26,7 @@ Name | Type | Description | Notes
**state** | [**crate::models::UserState**](UserState.md) | | **state** | [**crate::models::UserState**](UserState.md) | |
**status** | [**crate::models::UserStatus**](UserStatus.md) | | **status** | [**crate::models::UserStatus**](UserStatus.md) | |
**status_description** | **String** | | **status_description** | **String** | |
**tags** | **Vec<String>** | | **tags** | **Vec<String>** | |
**traveling_to_instance** | Option<**String**> | | [optional] **traveling_to_instance** | Option<**String**> | | [optional]
**traveling_to_location** | Option<**String**> | | [optional] **traveling_to_location** | Option<**String**> | | [optional]
**traveling_to_world** | Option<**String**> | | [optional] **traveling_to_world** | Option<**String**> | | [optional]

View File

@ -26,7 +26,7 @@ Name | Type | Description | Notes
**public_occupants** | Option<**i32**> | Will always be `0` when unauthenticated. | [optional][default to 0] **public_occupants** | Option<**i32**> | Will always be `0` when unauthenticated. | [optional][default to 0]
**publication_date** | **String** | | **publication_date** | **String** | |
**release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | | **release_status** | [**crate::models::ReleaseStatus**](ReleaseStatus.md) | |
**tags** | **Vec<String>** | | **tags** | **Vec<String>** | |
**thumbnail_image_url** | **String** | | **thumbnail_image_url** | **String** | |
**unity_packages** | [**Vec<crate::models::UnityPackage>**](UnityPackage.md) | Empty if unauthenticated. | **unity_packages** | [**Vec<crate::models::UnityPackage>**](UnityPackage.md) | Empty if unauthenticated. |
**updated_at** | **String** | | **updated_at** | **String** | |

View File

@ -9,6 +9,7 @@
use reqwest; use reqwest;
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct Configuration { pub struct Configuration {
pub base_path: String, pub base_path: String,
@ -29,6 +30,7 @@ pub struct ApiKey {
pub key: String, pub key: String,
} }
impl Configuration { impl Configuration {
pub fn new() -> Configuration { pub fn new() -> Configuration {
Configuration::default() Configuration::default()
@ -45,6 +47,7 @@ impl Default for Configuration {
oauth_access_token: None, oauth_access_token: None,
bearer_access_token: None, bearer_access_token: None,
api_key: None, api_key: None,
} }
} }
} }

View File

@ -229,7 +229,7 @@ pub fn get_favorite_groups(configuration: &configuration::Configuration, n: Opti
} }
/// Returns a list of favorites. /// 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_configuration = configuration;
let local_var_client = &local_var_configuration.client; 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 { if let Some(ref local_var_str) = offset {
local_var_req_builder = local_var_req_builder.query(&[("offset", &local_var_str.to_string())]); 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())]); local_var_req_builder = local_var_req_builder.query(&[("type", &local_var_str.to_string())]);
} }
if let Some(ref local_var_str) = tag { if let Some(ref local_var_str) = tag {

View File

@ -140,7 +140,7 @@ pub fn delete_notification(configuration: &configuration::Configuration, notific
} }
/// Retrieve all of the current user's notifications. /// 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_configuration = configuration;
let local_var_client = &local_var_configuration.client; 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 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()); 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())]); local_var_req_builder = local_var_req_builder.query(&[("type", &local_var_str.to_string())]);
} }
if let Some(ref local_var_str) = sent { if let Some(ref local_var_str) = sent {

View File

@ -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. /// 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_configuration = configuration;
let local_var_client = &local_var_configuration.client; 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 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()); 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())]); 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 { if let Some(ref local_var_str) = target_user_id {

View File

@ -12,7 +12,7 @@
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct AddFavoriteRequest { pub struct AddFavoriteRequest {
#[serde(rename = "type")] #[serde(rename = "type")]
pub _type: crate::models::FavoriteType, pub r#type: crate::models::FavoriteType,
/// Must be either AvatarID, WorldID or UserID. /// Must be either AvatarID, WorldID or UserID.
#[serde(rename = "favoriteId")] #[serde(rename = "favoriteId")]
pub favorite_id: String, pub favorite_id: String,
@ -22,9 +22,9 @@ pub struct AddFavoriteRequest {
} }
impl 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 { AddFavoriteRequest {
_type, r#type,
favorite_id, favorite_id,
tags, tags,
} }

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// ApiConfig :
@ -250,6 +251,7 @@ pub struct ApiConfig {
} }
impl 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 { 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 { ApiConfig {
voice_enable_degradation, voice_enable_degradation,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// Avatar :
@ -36,6 +37,7 @@ pub struct Avatar {
pub name: String, pub name: String,
#[serde(rename = "releaseStatus")] #[serde(rename = "releaseStatus")]
pub release_status: crate::models::ReleaseStatus, pub release_status: crate::models::ReleaseStatus,
///
#[serde(rename = "tags")] #[serde(rename = "tags")]
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "thumbnailImageUrl")] #[serde(rename = "thumbnailImageUrl")]
@ -53,6 +55,7 @@ pub struct Avatar {
} }
impl 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 { 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 { Avatar {
asset_url: None, asset_url: None,

View File

@ -19,6 +19,7 @@ pub struct CreateAvatarRequest {
pub name: String, pub name: String,
#[serde(rename = "description", skip_serializing_if = "Option::is_none")] #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>, pub description: Option<String>,
///
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")] #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>, pub tags: Option<Vec<String>>,
#[serde(rename = "imageUrl")] #[serde(rename = "imageUrl")]

View File

@ -17,6 +17,7 @@ pub struct CreateFileRequest {
pub mime_type: crate::models::MimeType, pub mime_type: crate::models::MimeType,
#[serde(rename = "extension")] #[serde(rename = "extension")]
pub extension: String, pub extension: String,
///
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")] #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>, pub tags: Option<Vec<String>>,
} }

View File

@ -36,6 +36,7 @@ pub struct CreateWorldRequest {
pub platform: Option<String>, pub platform: Option<String>,
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")] #[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
pub release_status: Option<crate::models::ReleaseStatus>, pub release_status: Option<crate::models::ReleaseStatus>,
///
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")] #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>, pub tags: Option<Vec<String>>,
#[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")] #[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")]

View File

@ -13,8 +13,8 @@
pub struct CurrentUser { pub struct CurrentUser {
#[serde(rename = "acceptedTOSVersion")] #[serde(rename = "acceptedTOSVersion")]
pub accepted_tos_version: i32, pub accepted_tos_version: i32,
#[serde(rename = "accountDeletionDate", skip_serializing_if = "Option::is_none")] #[serde(rename = "accountDeletionDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub account_deletion_date: Option<String>, pub account_deletion_date: Option<Option<String>>,
#[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")] #[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")]
pub active_friends: Option<Vec<String>>, pub active_friends: Option<Vec<String>>,
#[serde(rename = "allowAvatarCopying")] #[serde(rename = "allowAvatarCopying")]
@ -81,6 +81,7 @@ pub struct CurrentUser {
pub offline_friends: Option<Vec<String>>, pub offline_friends: Option<Vec<String>>,
#[serde(rename = "onlineFriends", skip_serializing_if = "Option::is_none")] #[serde(rename = "onlineFriends", skip_serializing_if = "Option::is_none")]
pub online_friends: Option<Vec<String>>, pub online_friends: Option<Vec<String>>,
///
#[serde(rename = "pastDisplayNames")] #[serde(rename = "pastDisplayNames")]
pub past_display_names: Vec<crate::models::PastDisplayName>, pub past_display_names: Vec<crate::models::PastDisplayName>,
#[serde(rename = "profilePicOverride")] #[serde(rename = "profilePicOverride")]
@ -103,8 +104,8 @@ pub struct CurrentUser {
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "twoFactorAuthEnabled")] #[serde(rename = "twoFactorAuthEnabled")]
pub two_factor_auth_enabled: bool, pub two_factor_auth_enabled: bool,
#[serde(rename = "twoFactorAuthEnabledDate", skip_serializing_if = "Option::is_none")] #[serde(rename = "twoFactorAuthEnabledDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub two_factor_auth_enabled_date: Option<String>, pub two_factor_auth_enabled_date: Option<Option<String>>,
#[serde(rename = "unsubscribe")] #[serde(rename = "unsubscribe")]
pub unsubscribe: bool, pub unsubscribe: bool,
#[serde(rename = "userIcon")] #[serde(rename = "userIcon")]

View File

@ -29,7 +29,7 @@ pub struct DynamicContentRow {
pub tag: Option<String>, pub tag: Option<String>,
/// Type is not present if it is a world. /// Type is not present if it is a world.
#[serde(rename = "type", skip_serializing_if = "Option::is_none")] #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<String>, pub r#type: Option<String>,
} }
impl DynamicContentRow { impl DynamicContentRow {
@ -42,7 +42,7 @@ impl DynamicContentRow {
sort_order, sort_order,
sort_ownership, sort_ownership,
tag: None, tag: None,
_type: None, r#type: None,
} }
} }
} }

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// Favorite :
@ -16,19 +17,21 @@ pub struct Favorite {
pub favorite_id: String, pub favorite_id: String,
#[serde(rename = "id")] #[serde(rename = "id")]
pub id: String, pub id: String,
///
#[serde(rename = "tags")] #[serde(rename = "tags")]
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "type")] #[serde(rename = "type")]
pub _type: crate::models::FavoriteType, pub r#type: crate::models::FavoriteType,
} }
impl Favorite { 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 {
favorite_id, favorite_id,
id, id,
tags, tags,
_type, r#type,
} }
} }
} }

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * 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. /// 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")] #[serde(rename = "ownerId")]
pub owner_id: String, pub owner_id: String,
///
#[serde(rename = "tags")] #[serde(rename = "tags")]
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "type")] #[serde(rename = "type")]
pub _type: crate::models::FavoriteType, pub r#type: crate::models::FavoriteType,
#[serde(rename = "visibility")] #[serde(rename = "visibility")]
pub visibility: crate::models::FavoriteGroupVisibility, pub visibility: crate::models::FavoriteGroupVisibility,
} }
impl FavoriteGroup { 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 { FavoriteGroup {
display_name, display_name,
id, id,
@ -39,7 +42,7 @@ impl FavoriteGroup {
owner_display_name, owner_display_name,
owner_id, owner_id,
tags, tags,
_type, r#type,
visibility, visibility,
} }
} }

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// File :
@ -17,18 +18,22 @@ pub struct File {
pub id: String, pub id: String,
#[serde(rename = "mimeType")] #[serde(rename = "mimeType")]
pub mime_type: crate::models::MimeType, pub mime_type: crate::models::MimeType,
///
#[serde(rename = "name")] #[serde(rename = "name")]
pub name: String, 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. /// 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")] #[serde(rename = "ownerId")]
pub owner_id: String, pub owner_id: String,
///
#[serde(rename = "tags")] #[serde(rename = "tags")]
pub tags: Vec<String>, pub tags: Vec<String>,
///
#[serde(rename = "versions")] #[serde(rename = "versions")]
pub versions: Vec<crate::models::FileVersion>, pub versions: Vec<crate::models::FileVersion>,
} }
impl File { 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 { 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 { File {
extension, extension,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// FileData :
@ -28,6 +29,7 @@ pub struct FileData {
} }
impl 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 { 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 { FileData {
category, category,

View File

@ -6,16 +6,19 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// FileUploadUrl :
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct FileUploadUrl { pub struct FileUploadUrl {
///
#[serde(rename = "url")] #[serde(rename = "url")]
pub url: String, pub url: String,
} }
impl FileUploadUrl { impl FileUploadUrl {
///
pub fn new(url: String) -> FileUploadUrl { pub fn new(url: String) -> FileUploadUrl {
FileUploadUrl { FileUploadUrl {
url, url,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// FileVersion :
@ -30,6 +31,7 @@ pub struct FileVersion {
} }
impl FileVersion { impl FileVersion {
///
pub fn new(created_at: String, status: crate::models::FileStatus, version: i32) -> FileVersion { pub fn new(created_at: String, status: crate::models::FileStatus, version: i32) -> FileVersion {
FileVersion { FileVersion {
created_at, created_at,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// FileVersionUploadStatus :
@ -27,6 +28,7 @@ pub struct FileVersionUploadStatus {
} }
impl 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 { 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 { FileVersionUploadStatus {
upload_id, upload_id,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// FinishFileDataUploadRequest :
@ -23,6 +24,7 @@ pub struct FinishFileDataUploadRequest {
} }
impl FinishFileDataUploadRequest { impl FinishFileDataUploadRequest {
///
pub fn new(next_part_number: String, max_parts: String) -> FinishFileDataUploadRequest { pub fn new(next_part_number: String, max_parts: String) -> FinishFileDataUploadRequest {
FinishFileDataUploadRequest { FinishFileDataUploadRequest {
etags: None, etags: None,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// InfoPush :
@ -19,6 +20,7 @@ pub struct InfoPush {
pub release_status: crate::models::ReleaseStatus, pub release_status: crate::models::ReleaseStatus,
#[serde(rename = "priority")] #[serde(rename = "priority")]
pub priority: i32, pub priority: i32,
///
#[serde(rename = "tags")] #[serde(rename = "tags")]
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "data")] #[serde(rename = "data")]
@ -30,6 +32,7 @@ pub struct InfoPush {
pub created_at: String, pub created_at: String,
#[serde(rename = "updatedAt")] #[serde(rename = "updatedAt")]
pub updated_at: String, pub updated_at: String,
///
#[serde(rename = "startDate", skip_serializing_if = "Option::is_none")] #[serde(rename = "startDate", skip_serializing_if = "Option::is_none")]
pub start_date: Option<String>, pub start_date: Option<String>,
#[serde(rename = "endDate", skip_serializing_if = "Option::is_none")] #[serde(rename = "endDate", skip_serializing_if = "Option::is_none")]
@ -37,6 +40,7 @@ pub struct InfoPush {
} }
impl 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 { 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 { InfoPush {
id, id,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// InfoPushData :
@ -30,6 +31,7 @@ pub struct InfoPushData {
} }
impl InfoPushData { impl InfoPushData {
///
pub fn new() -> InfoPushData { pub fn new() -> InfoPushData {
InfoPushData { InfoPushData {
content_list: None, content_list: None,

View File

@ -31,9 +31,9 @@ impl InfoPushDataClickable {
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Command { pub enum Command {
#[serde(rename = "OpenURL")] #[serde(rename = "OpenURL")]
OpenURL, OpenUrl,
#[serde(rename = "OpenVRCPlusMenu")] #[serde(rename = "OpenVRCPlusMenu")]
OpenVRCPlusMenu, OpenVrcPlusMenu,
#[serde(rename = "OpenSafetyMenu")] #[serde(rename = "OpenSafetyMenu")]
OpenSafetyMenu, OpenSafetyMenu,
#[serde(rename = "CannedWorldSearch")] #[serde(rename = "CannedWorldSearch")]
@ -42,7 +42,7 @@ pub enum Command {
impl Default for Command { impl Default for Command {
fn default() -> Command { fn default() -> Command {
Self::OpenURL Self::OpenUrl
} }
} }

View File

@ -54,7 +54,7 @@ pub struct Instance {
#[serde(rename = "tags")] #[serde(rename = "tags")]
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "type")] #[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. /// WorldID be \"offline\" on User profiles if you are not friends with that user.
#[serde(rename = "worldId")] #[serde(rename = "worldId")]
pub world_id: String, pub world_id: String,
@ -71,7 +71,7 @@ pub struct Instance {
impl 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. /// * `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 { Instance {
active, active,
can_request_invite, can_request_invite,
@ -91,7 +91,7 @@ impl Instance {
secure_name, secure_name,
short_name: None, short_name: None,
tags, tags,
_type, r#type,
world_id, world_id,
hidden: None, hidden: None,
friends: None, friends: None,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// InstanceType :
/// ///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// InviteMessage :
@ -29,6 +30,7 @@ pub struct InviteMessage {
} }
impl 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 { 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 { InviteMessage {
can_be_updated, can_be_updated,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// InviteMessageType :
/// ///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// LicenseGroup :
@ -22,6 +23,7 @@ pub struct LicenseGroup {
} }
impl LicenseGroup { impl LicenseGroup {
///
pub fn new(id: String, name: String, description: String, licenses: Vec<crate::models::License>) -> LicenseGroup { pub fn new(id: String, name: String, description: String, licenses: Vec<crate::models::License>) -> LicenseGroup {
LicenseGroup { LicenseGroup {
id, id,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// LimitedUnityPackage :
@ -19,6 +20,7 @@ pub struct LimitedUnityPackage {
} }
impl LimitedUnityPackage { impl LimitedUnityPackage {
///
pub fn new(platform: String, unity_version: String) -> LimitedUnityPackage { pub fn new(platform: String, unity_version: String) -> LimitedUnityPackage {
LimitedUnityPackage { LimitedUnityPackage {
platform, platform,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// LimitedUser :
@ -54,6 +55,7 @@ pub struct LimitedUser {
} }
impl 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 { 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 { LimitedUser {
bio: None, bio: None,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// LimitedWorld :
@ -43,10 +44,12 @@ pub struct LimitedWorld {
pub publication_date: String, pub publication_date: String,
#[serde(rename = "releaseStatus")] #[serde(rename = "releaseStatus")]
pub release_status: crate::models::ReleaseStatus, pub release_status: crate::models::ReleaseStatus,
///
#[serde(rename = "tags")] #[serde(rename = "tags")]
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "thumbnailImageUrl")] #[serde(rename = "thumbnailImageUrl")]
pub thumbnail_image_url: String, pub thumbnail_image_url: String,
///
#[serde(rename = "unityPackages")] #[serde(rename = "unityPackages")]
pub unity_packages: Vec<crate::models::LimitedUnityPackage>, pub unity_packages: Vec<crate::models::LimitedUnityPackage>,
#[serde(rename = "updated_at")] #[serde(rename = "updated_at")]
@ -54,6 +57,7 @@ pub struct LimitedWorld {
} }
impl 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 { 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 { LimitedWorld {
author_id, author_id,

View File

@ -11,60 +11,60 @@
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum MimeType { pub enum MimeType {
#[serde(rename = "image/jpeg")] #[serde(rename = "image/jpeg")]
ImageJpeg, ImageSlashJpeg,
#[serde(rename = "image/jpg")] #[serde(rename = "image/jpg")]
ImageJpg, ImageSlashJpg,
#[serde(rename = "image/png")] #[serde(rename = "image/png")]
ImagePng, ImageSlashPng,
#[serde(rename = "image/webp")] #[serde(rename = "image/webp")]
ImageWebp, ImageSlashWebp,
#[serde(rename = "image/gif")] #[serde(rename = "image/gif")]
ImageGif, ImageSlashGif,
#[serde(rename = "image/bmp")] #[serde(rename = "image/bmp")]
ImageBmp, ImageSlashBmp,
#[serde(rename = "image/svgxml")] #[serde(rename = "image/svgxml")]
ImageSvgxml, ImageSlashSvgxml,
#[serde(rename = "image/tiff")] #[serde(rename = "image/tiff")]
ImageTiff, ImageSlashTiff,
#[serde(rename = "application/x-avatar")] #[serde(rename = "application/x-avatar")]
ApplicationXAvatar, ApplicationSlashXAvatar,
#[serde(rename = "application/x-world")] #[serde(rename = "application/x-world")]
ApplicationXWorld, ApplicationSlashXWorld,
#[serde(rename = "application/gzip")] #[serde(rename = "application/gzip")]
ApplicationGzip, ApplicationSlashGzip,
#[serde(rename = "application/x-rsync-signature")] #[serde(rename = "application/x-rsync-signature")]
ApplicationXRsyncSignature, ApplicationSlashXRsyncSignature,
#[serde(rename = "application/x-rsync-delta")] #[serde(rename = "application/x-rsync-delta")]
ApplicationXRsyncDelta, ApplicationSlashXRsyncDelta,
#[serde(rename = "application/octet-stream")] #[serde(rename = "application/octet-stream")]
ApplicationOctetStream, ApplicationSlashOctetStream,
} }
impl ToString for MimeType { impl ToString for MimeType {
fn to_string(&self) -> String { fn to_string(&self) -> String {
match self { match self {
Self::ImageJpeg => String::from("image/jpeg"), Self::ImageSlashJpeg => String::from("image/jpeg"),
Self::ImageJpg => String::from("image/jpg"), Self::ImageSlashJpg => String::from("image/jpg"),
Self::ImagePng => String::from("image/png"), Self::ImageSlashPng => String::from("image/png"),
Self::ImageWebp => String::from("image/webp"), Self::ImageSlashWebp => String::from("image/webp"),
Self::ImageGif => String::from("image/gif"), Self::ImageSlashGif => String::from("image/gif"),
Self::ImageBmp => String::from("image/bmp"), Self::ImageSlashBmp => String::from("image/bmp"),
Self::ImageSvgxml => String::from("image/svgxml"), Self::ImageSlashSvgxml => String::from("image/svgxml"),
Self::ImageTiff => String::from("image/tiff"), Self::ImageSlashTiff => String::from("image/tiff"),
Self::ApplicationXAvatar => String::from("application/x-avatar"), Self::ApplicationSlashXAvatar => String::from("application/x-avatar"),
Self::ApplicationXWorld => String::from("application/x-world"), Self::ApplicationSlashXWorld => String::from("application/x-world"),
Self::ApplicationGzip => String::from("application/gzip"), Self::ApplicationSlashGzip => String::from("application/gzip"),
Self::ApplicationXRsyncSignature => String::from("application/x-rsync-signature"), Self::ApplicationSlashXRsyncSignature => String::from("application/x-rsync-signature"),
Self::ApplicationXRsyncDelta => String::from("application/x-rsync-delta"), Self::ApplicationSlashXRsyncDelta => String::from("application/x-rsync-delta"),
Self::ApplicationOctetStream => String::from("application/octet-stream"), Self::ApplicationSlashOctetStream => String::from("application/octet-stream"),
} }
} }
} }
impl Default for MimeType { impl Default for MimeType {
fn default() -> MimeType { fn default() -> MimeType {
Self::ImageJpeg Self::ImageSlashJpeg
} }
} }

View File

@ -15,14 +15,14 @@ pub struct ModerateUserRequest {
#[serde(rename = "moderated")] #[serde(rename = "moderated")]
pub moderated: String, pub moderated: String,
#[serde(rename = "type")] #[serde(rename = "type")]
pub _type: crate::models::PlayerModerationType, pub r#type: crate::models::PlayerModerationType,
} }
impl ModerateUserRequest { impl ModerateUserRequest {
pub fn new(moderated: String, _type: crate::models::PlayerModerationType) -> ModerateUserRequest { pub fn new(moderated: String, r#type: crate::models::PlayerModerationType) -> ModerateUserRequest {
ModerateUserRequest { ModerateUserRequest {
moderated, moderated,
_type, r#type,
} }
} }
} }

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// Notification :
@ -18,6 +19,7 @@ pub struct Notification {
pub details: String, pub details: String,
#[serde(rename = "id")] #[serde(rename = "id")]
pub id: String, pub id: String,
///
#[serde(rename = "message")] #[serde(rename = "message")]
pub message: String, pub message: String,
#[serde(rename = "seen")] #[serde(rename = "seen")]
@ -29,11 +31,12 @@ pub struct Notification {
#[serde(rename = "senderUsername", skip_serializing_if = "Option::is_none")] #[serde(rename = "senderUsername", skip_serializing_if = "Option::is_none")]
pub sender_username: Option<String>, pub sender_username: Option<String>,
#[serde(rename = "type")] #[serde(rename = "type")]
pub _type: crate::models::NotificationType, pub r#type: crate::models::NotificationType,
} }
impl Notification { 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 { Notification {
created_at, created_at,
details, details,
@ -42,7 +45,7 @@ impl Notification {
seen, seen,
sender_user_id, sender_user_id,
sender_username: None, sender_username: None,
_type, r#type,
} }
} }
} }

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// Permission :
@ -23,6 +24,7 @@ pub struct Permission {
} }
impl Permission { impl Permission {
///
pub fn new(id: String, name: String, owner_id: String) -> Permission { pub fn new(id: String, name: String, owner_id: String) -> Permission {
Permission { Permission {
id, id,

View File

@ -26,11 +26,11 @@ pub struct PlayerModeration {
#[serde(rename = "targetUserId")] #[serde(rename = "targetUserId")]
pub target_user_id: String, pub target_user_id: String,
#[serde(rename = "type")] #[serde(rename = "type")]
pub _type: crate::models::PlayerModerationType, pub r#type: crate::models::PlayerModerationType,
} }
impl PlayerModeration { 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 { PlayerModeration {
created, created,
id, id,
@ -38,7 +38,7 @@ impl PlayerModeration {
source_user_id, source_user_id,
target_display_name, target_display_name,
target_user_id, target_user_id,
_type, r#type,
} }
} }
} }

View File

@ -14,7 +14,7 @@ pub enum Region {
#[serde(rename = "us")] #[serde(rename = "us")]
Us, Us,
#[serde(rename = "use")] #[serde(rename = "use")]
_Use, Use,
#[serde(rename = "usw")] #[serde(rename = "usw")]
Usw, Usw,
#[serde(rename = "eu")] #[serde(rename = "eu")]
@ -30,7 +30,7 @@ impl ToString for Region {
fn to_string(&self) -> String { fn to_string(&self) -> String {
match self { match self {
Self::Us => String::from("us"), Self::Us => String::from("us"),
Self::_Use => String::from("use"), Self::Use => String::from("use"),
Self::Usw => String::from("usw"), Self::Usw => String::from("usw"),
Self::Eu => String::from("eu"), Self::Eu => String::from("eu"),
Self::Jp => String::from("jp"), Self::Jp => String::from("jp"),

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// SentNotification :
@ -18,6 +19,7 @@ pub struct SentNotification {
pub details: String, pub details: String,
#[serde(rename = "id")] #[serde(rename = "id")]
pub id: String, pub id: String,
///
#[serde(rename = "message")] #[serde(rename = "message")]
pub message: String, 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. /// 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")] #[serde(rename = "senderUsername", skip_serializing_if = "Option::is_none")]
pub sender_username: Option<String>, pub sender_username: Option<String>,
#[serde(rename = "type")] #[serde(rename = "type")]
pub _type: crate::models::NotificationType, pub r#type: crate::models::NotificationType,
} }
impl SentNotification { 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 { SentNotification {
created_at, created_at,
details, details,
@ -43,7 +46,7 @@ impl SentNotification {
reciever_user_id, reciever_user_id,
sender_user_id, sender_user_id,
sender_username: None, sender_username: None,
_type, r#type,
} }
} }
} }

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// Subscription :
@ -26,6 +27,7 @@ pub struct Subscription {
} }
impl Subscription { impl Subscription {
///
pub fn new(id: String, steam_item_id: String, amount: f32, description: String, period: crate::models::SubscriptionPeriod, tier: f32) -> Subscription { pub fn new(id: String, steam_item_id: String, amount: f32, description: String, period: crate::models::SubscriptionPeriod, tier: f32) -> Subscription {
Subscription { Subscription {
id, id,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// Transaction :
@ -32,6 +33,7 @@ pub struct Transaction {
} }
impl 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 { 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 { Transaction {
id, id,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// TransactionAgreement :
@ -49,6 +50,7 @@ pub struct TransactionAgreement {
} }
impl 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 { 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 { TransactionAgreement {
agreement_id, agreement_id,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// TransactionSteamInfo :
@ -28,6 +29,7 @@ pub struct TransactionSteamInfo {
} }
impl TransactionSteamInfo { impl TransactionSteamInfo {
///
pub fn new(wallet_info: crate::models::TransactionSteamWalletInfo, steam_id: String, order_id: String, steam_url: String, trans_id: String) -> TransactionSteamInfo { pub fn new(wallet_info: crate::models::TransactionSteamWalletInfo, steam_id: String, order_id: String, steam_url: String, trans_id: String) -> TransactionSteamInfo {
TransactionSteamInfo { TransactionSteamInfo {
wallet_info: Box::new(wallet_info), wallet_info: Box::new(wallet_info),

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// TransactionSteamWalletInfo :
@ -22,6 +23,7 @@ pub struct TransactionSteamWalletInfo {
} }
impl TransactionSteamWalletInfo { impl TransactionSteamWalletInfo {
///
pub fn new(state: String, country: String, currency: String, status: String) -> TransactionSteamWalletInfo { pub fn new(state: String, country: String, currency: String, status: String) -> TransactionSteamWalletInfo {
TransactionSteamWalletInfo { TransactionSteamWalletInfo {
state, state,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// UnityPackage :
@ -35,6 +36,7 @@ pub struct UnityPackage {
} }
impl UnityPackage { impl UnityPackage {
///
pub fn new(asset_version: i32, id: String, platform: String, unity_version: String) -> UnityPackage { pub fn new(asset_version: i32, id: String, platform: String, unity_version: String) -> UnityPackage {
UnityPackage { UnityPackage {
asset_url: None, asset_url: None,

View File

@ -19,6 +19,7 @@ pub struct UpdateAvatarRequest {
pub name: Option<String>, pub name: Option<String>,
#[serde(rename = "description", skip_serializing_if = "Option::is_none")] #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>, pub description: Option<String>,
///
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")] #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>, pub tags: Option<Vec<String>>,
#[serde(rename = "imageUrl", skip_serializing_if = "Option::is_none")] #[serde(rename = "imageUrl", skip_serializing_if = "Option::is_none")]

View File

@ -17,6 +17,7 @@ pub struct UpdateUserRequest {
pub birthday: Option<String>, pub birthday: Option<String>,
#[serde(rename = "acceptedTOSVersion", skip_serializing_if = "Option::is_none")] #[serde(rename = "acceptedTOSVersion", skip_serializing_if = "Option::is_none")]
pub accepted_tos_version: Option<f32>, pub accepted_tos_version: Option<f32>,
///
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")] #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>, pub tags: Option<Vec<String>>,
#[serde(rename = "status", skip_serializing_if = "Option::is_none")] #[serde(rename = "status", skip_serializing_if = "Option::is_none")]

View File

@ -33,6 +33,7 @@ pub struct UpdateWorldRequest {
pub platform: Option<String>, pub platform: Option<String>,
#[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")] #[serde(rename = "releaseStatus", skip_serializing_if = "Option::is_none")]
pub release_status: Option<crate::models::ReleaseStatus>, pub release_status: Option<crate::models::ReleaseStatus>,
///
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")] #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>, pub tags: Option<Vec<String>>,
#[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")] #[serde(rename = "unityPackageUrl", skip_serializing_if = "Option::is_none")]

View File

@ -65,6 +65,7 @@ pub struct User {
pub status: crate::models::UserStatus, pub status: crate::models::UserStatus,
#[serde(rename = "statusDescription")] #[serde(rename = "statusDescription")]
pub status_description: String, pub status_description: String,
///
#[serde(rename = "tags")] #[serde(rename = "tags")]
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "travelingToInstance", skip_serializing_if = "Option::is_none")] #[serde(rename = "travelingToInstance", skip_serializing_if = "Option::is_none")]

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// UserSubscription :
@ -45,6 +46,7 @@ pub struct UserSubscription {
} }
impl 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 { 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 { UserSubscription {
id, id,

View File

@ -6,6 +6,7 @@
* Generated by: https://openapi-generator.tech * Generated by: https://openapi-generator.tech
*/ */
/// World :
@ -49,8 +50,8 @@ pub struct World {
pub organization: String, pub organization: String,
#[serde(rename = "popularity")] #[serde(rename = "popularity")]
pub popularity: i32, pub popularity: i32,
#[serde(rename = "previewYoutubeId", skip_serializing_if = "Option::is_none")] #[serde(rename = "previewYoutubeId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub preview_youtube_id: Option<String>, pub preview_youtube_id: Option<Option<String>>,
/// Will always be `0` when unauthenticated. /// Will always be `0` when unauthenticated.
#[serde(rename = "privateOccupants", skip_serializing_if = "Option::is_none")] #[serde(rename = "privateOccupants", skip_serializing_if = "Option::is_none")]
pub private_occupants: Option<i32>, pub private_occupants: Option<i32>,
@ -61,6 +62,7 @@ pub struct World {
pub publication_date: String, pub publication_date: String,
#[serde(rename = "releaseStatus")] #[serde(rename = "releaseStatus")]
pub release_status: crate::models::ReleaseStatus, pub release_status: crate::models::ReleaseStatus,
///
#[serde(rename = "tags")] #[serde(rename = "tags")]
pub tags: Vec<String>, pub tags: Vec<String>,
#[serde(rename = "thumbnailImageUrl")] #[serde(rename = "thumbnailImageUrl")]
@ -77,6 +79,7 @@ pub struct World {
} }
impl 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 { 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 { World {
author_id, author_id,