Upgrade Rust SDK to spec 1.17.5

This commit is contained in:
VRCCat
2024-05-27 18:33:15 +00:00
parent 3899aaca53
commit 6560601846
54 changed files with 407 additions and 52 deletions

View File

@ -12,6 +12,7 @@ docs/AuthenticationApi.md
docs/Avatar.md docs/Avatar.md
docs/AvatarUnityPackageUrlObject.md docs/AvatarUnityPackageUrlObject.md
docs/AvatarsApi.md docs/AvatarsApi.md
docs/Badge.md
docs/BanGroupMemberRequest.md docs/BanGroupMemberRequest.md
docs/CreateAvatarRequest.md docs/CreateAvatarRequest.md
docs/CreateFileRequest.md docs/CreateFileRequest.md
@ -76,6 +77,7 @@ docs/InfoPushDataArticleContent.md
docs/InfoPushDataClickable.md docs/InfoPushDataClickable.md
docs/Instance.md docs/Instance.md
docs/InstancePlatforms.md docs/InstancePlatforms.md
docs/InstanceRegion.md
docs/InstanceShortNameResponse.md docs/InstanceShortNameResponse.md
docs/InstanceType.md docs/InstanceType.md
docs/InstancesApi.md docs/InstancesApi.md
@ -91,6 +93,7 @@ docs/LicenseType.md
docs/LimitedGroup.md docs/LimitedGroup.md
docs/LimitedUnityPackage.md docs/LimitedUnityPackage.md
docs/LimitedUser.md docs/LimitedUser.md
docs/LimitedUserGroups.md
docs/LimitedWorld.md docs/LimitedWorld.md
docs/MimeType.md docs/MimeType.md
docs/ModerateUserRequest.md docs/ModerateUserRequest.md
@ -181,6 +184,7 @@ src/models/api_config_events.rs
src/models/api_health.rs src/models/api_health.rs
src/models/avatar.rs src/models/avatar.rs
src/models/avatar_unity_package_url_object.rs src/models/avatar_unity_package_url_object.rs
src/models/badge.rs
src/models/ban_group_member_request.rs src/models/ban_group_member_request.rs
src/models/create_avatar_request.rs src/models/create_avatar_request.rs
src/models/create_file_request.rs src/models/create_file_request.rs
@ -240,6 +244,7 @@ src/models/info_push_data_article_content.rs
src/models/info_push_data_clickable.rs src/models/info_push_data_clickable.rs
src/models/instance.rs src/models/instance.rs
src/models/instance_platforms.rs src/models/instance_platforms.rs
src/models/instance_region.rs
src/models/instance_short_name_response.rs src/models/instance_short_name_response.rs
src/models/instance_type.rs src/models/instance_type.rs
src/models/invite_message.rs src/models/invite_message.rs
@ -253,6 +258,7 @@ src/models/license_type.rs
src/models/limited_group.rs src/models/limited_group.rs
src/models/limited_unity_package.rs src/models/limited_unity_package.rs
src/models/limited_user.rs src/models/limited_user.rs
src/models/limited_user_groups.rs
src/models/limited_world.rs src/models/limited_world.rs
src/models/mime_type.rs src/models/mime_type.rs
src/models/mod.rs src/models/mod.rs

View File

@ -1,6 +1,6 @@
[package] [package]
name = "vrchatapi" name = "vrchatapi"
version = "1.17.3" version = "1.17.5"
authors = ["vrchatapi.lpv0t@aries.fyi"] authors = ["vrchatapi.lpv0t@aries.fyi"]
description = "VRChat API Client for Rust" description = "VRChat API Client for Rust"
license = "MIT" license = "MIT"

View File

@ -1,6 +1,6 @@
# \AuthenticationApi # \AuthenticationApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -1,6 +1,6 @@
# \AvatarsApi # \AvatarsApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

18
docs/Badge.md Normal file
View File

@ -0,0 +1,18 @@
# Badge
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**assigned_at** | Option<**String**> | only present in CurrentUser badges | [optional]
**badge_description** | **String** | |
**badge_id** | **String** | |
**badge_image_url** | **String** | direct url to image |
**badge_name** | **String** | |
**hidden** | Option<**bool**> | only present in CurrentUser badges | [optional]
**showcased** | **bool** | |
**updated_at** | Option<**String**> | only present in CurrentUser badges | [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)

View File

@ -6,12 +6,15 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**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. |
**r#type** | [**crate::models::InstanceType**](InstanceType.md) | | **r#type** | [**crate::models::InstanceType**](InstanceType.md) | |
**region** | [**crate::models::Region**](Region.md) | | **region** | [**crate::models::InstanceRegion**](InstanceRegion.md) | |
**owner_id** | Option<**String**> | A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise | [optional] **owner_id** | Option<**String**> | A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise | [optional]
**role_ids** | Option<**Vec<String>**> | Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" | [optional] **role_ids** | Option<**Vec<String>**> | Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" | [optional]
**group_access_type** | Option<[**crate::models::GroupAccessType**](GroupAccessType.md)> | | [optional] **group_access_type** | Option<[**crate::models::GroupAccessType**](GroupAccessType.md)> | | [optional]
**queue_enabled** | Option<**bool**> | | [optional][default to false] **queue_enabled** | Option<**bool**> | | [optional][default to false]
**closed_at** | Option<**String**> | The time after which users won't be allowed to join the instance | [optional] **closed_at** | Option<**String**> | The time after which users won't be allowed to join the instance. This doesn't work for public instances. | [optional]
**can_request_invite** | Option<**bool**> | Only applies to invite type instances to make them invite+ | [optional][default to false]
**hard_close** | Option<**bool**> | Currently unused, but will eventually be a flag to set if the closing of the instance should kick people. | [optional][default to false]
**invite_only** | Option<**bool**> | | [optional][default to false]
[[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

@ -10,13 +10,14 @@ Name | Type | Description | Notes
**account_deletion_log** | Option<[**Vec<crate::models::AccountDeletionLog>**](AccountDeletionLog.md)> | | [optional] **account_deletion_log** | Option<[**Vec<crate::models::AccountDeletionLog>**](AccountDeletionLog.md)> | | [optional]
**active_friends** | Option<**Vec<String>**> | | [optional] **active_friends** | Option<**Vec<String>**> | | [optional]
**allow_avatar_copying** | **bool** | | **allow_avatar_copying** | **bool** | |
**badges** | Option<[**Vec<crate::models::Badge>**](Badge.md)> | | [optional]
**bio** | **String** | | **bio** | **String** | |
**bio_links** | **Vec<String>** | | **bio_links** | **Vec<String>** | |
**current_avatar** | **String** | | **current_avatar** | **String** | |
**current_avatar_asset_url** | **String** | | **current_avatar_asset_url** | **String** | |
**current_avatar_image_url** | **String** | When profilePicOverride is not empty, use it instead. | **current_avatar_image_url** | **String** | When profilePicOverride is not empty, use it instead. |
**current_avatar_thumbnail_image_url** | **String** | When profilePicOverride is not empty, use it instead. | **current_avatar_thumbnail_image_url** | **String** | When profilePicOverride is not empty, use it instead. |
**current_avatar_tags** | Option<**Vec<String>**> | | [optional] **current_avatar_tags** | **Vec<String>** | |
**date_joined** | [**String**](string.md) | | **date_joined** | [**String**](string.md) | |
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | | **developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
**display_name** | **String** | | **display_name** | **String** | |
@ -37,11 +38,13 @@ Name | Type | Description | Notes
**is_friend** | **bool** | | [default to false] **is_friend** | **bool** | | [default to false]
**last_activity** | Option<**String**> | | [optional] **last_activity** | Option<**String**> | | [optional]
**last_login** | **String** | | **last_login** | **String** | |
**last_mobile** | Option<**String**> | |
**last_platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **last_platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. |
**obfuscated_email** | **String** | | **obfuscated_email** | **String** | |
**obfuscated_pending_email** | **String** | | **obfuscated_pending_email** | **String** | |
**oculus_id** | **String** | | **oculus_id** | **String** | |
**google_id** | Option<**String**> | | [optional] **google_id** | Option<**String**> | | [optional]
**google_details** | Option<[**serde_json::Value**](.md)> | | [optional]
**pico_id** | Option<**String**> | | [optional] **pico_id** | Option<**String**> | | [optional]
**vive_id** | Option<**String**> | | [optional] **vive_id** | Option<**String**> | | [optional]
**offline_friends** | Option<**Vec<String>**> | | [optional] **offline_friends** | Option<**Vec<String>**> | | [optional]
@ -49,6 +52,7 @@ Name | Type | Description | Notes
**past_display_names** | [**Vec<crate::models::PastDisplayName>**](PastDisplayName.md) | | **past_display_names** | [**Vec<crate::models::PastDisplayName>**](PastDisplayName.md) | |
**presence** | Option<[**crate::models::CurrentUserPresence**](CurrentUserPresence.md)> | | [optional] **presence** | Option<[**crate::models::CurrentUserPresence**](CurrentUserPresence.md)> | | [optional]
**profile_pic_override** | **String** | | **profile_pic_override** | **String** | |
**pronouns** | **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) | |
**status_description** | **String** | | **status_description** | **String** | |

View File

@ -1,6 +1,6 @@
# \EconomyApi # \EconomyApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -1,6 +1,6 @@
# \FavoritesApi # \FavoritesApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -1,6 +1,6 @@
# \FilesApi # \FilesApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -1,6 +1,6 @@
# \FriendsApi # \FriendsApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -1,6 +1,6 @@
# \GroupsApi # \GroupsApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------
@ -927,7 +927,7 @@ Name | Type | Description | Required | Notes
## get_group_requests ## get_group_requests
> Vec<crate::models::GroupMember> get_group_requests(group_id, n, offset) > Vec<crate::models::GroupMember> get_group_requests(group_id, n, offset, blocked)
Get Group Join Requests Get Group Join Requests
Returns a list of members that have requested to join the Group. Returns a list of members that have requested to join the Group.
@ -940,6 +940,7 @@ Name | Type | Description | Required | Notes
**group_id** | **String** | Must be a valid group ID. | [required] | **group_id** | **String** | Must be a valid group ID. | [required] |
**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. | |
**blocked** | Option<**bool**> | See blocked join requests | |
### Return type ### Return type

View File

@ -18,7 +18,7 @@ Name | Type | Description | Notes
**permanent** | **bool** | | [default to false] **permanent** | **bool** | | [default to false]
**photon_region** | [**crate::models::Region**](Region.md) | | **photon_region** | [**crate::models::Region**](Region.md) | |
**platforms** | [**crate::models::InstancePlatforms**](InstancePlatforms.md) | | **platforms** | [**crate::models::InstancePlatforms**](InstancePlatforms.md) | |
**region** | [**crate::models::Region**](Region.md) | | **region** | [**crate::models::InstanceRegion**](InstanceRegion.md) | |
**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. |

10
docs/InstanceRegion.md Normal file
View File

@ -0,0 +1,10 @@
# InstanceRegion
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[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

@ -1,6 +1,6 @@
# \InstancesApi # \InstancesApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -1,6 +1,6 @@
# \InviteApi # \InviteApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -5,8 +5,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**bio** | Option<**String**> | | [optional] **bio** | Option<**String**> | | [optional]
**bio_links** | Option<**Vec<String>**> | | [optional]
**current_avatar_image_url** | Option<**String**> | When profilePicOverride is not empty, use it instead. | [optional] **current_avatar_image_url** | Option<**String**> | When profilePicOverride is not empty, use it instead. | [optional]
**current_avatar_thumbnail_image_url** | Option<**String**> | When profilePicOverride is not empty, use it instead. | [optional] **current_avatar_thumbnail_image_url** | Option<**String**> | When profilePicOverride is not empty, use it instead. | [optional]
**current_avatar_tags** | Option<**Vec<String>**> | | [optional]
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | | **developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
**display_name** | **String** | | **display_name** | **String** | |
**fallback_avatar** | Option<**String**> | | [optional] **fallback_avatar** | Option<**String**> | | [optional]
@ -14,6 +16,7 @@ Name | Type | Description | Notes
**is_friend** | **bool** | | **is_friend** | **bool** | |
**last_platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **last_platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. |
**profile_pic_override** | Option<**String**> | | [optional] **profile_pic_override** | Option<**String**> | | [optional]
**pronouns** | Option<**String**> | | [optional]
**status** | [**crate::models::UserStatus**](UserStatus.md) | | **status** | [**crate::models::UserStatus**](UserStatus.md) | |
**status_description** | **String** | | **status_description** | **String** | |
**tags** | **Vec<String>** | <- Always empty. | **tags** | **Vec<String>** | <- Always empty. |

28
docs/LimitedUserGroups.md Normal file
View File

@ -0,0 +1,28 @@
# LimitedUserGroups
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | Option<**String**> | | [optional]
**name** | Option<**String**> | | [optional]
**short_code** | Option<**String**> | | [optional]
**discriminator** | Option<**String**> | | [optional]
**description** | Option<**String**> | | [optional]
**icon_id** | Option<**String**> | | [optional]
**icon_url** | Option<**String**> | | [optional]
**banner_id** | Option<**String**> | | [optional]
**banner_url** | Option<**String**> | | [optional]
**privacy** | Option<**String**> | | [optional]
**last_post_created_at** | Option<**String**> | | [optional]
**owner_id** | Option<**String**> | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional]
**member_count** | Option<**i32**> | | [optional]
**group_id** | Option<**String**> | | [optional]
**member_visibility** | Option<**String**> | | [optional]
**is_representing** | Option<**bool**> | | [optional]
**mutual_group** | Option<**bool**> | | [optional]
**last_post_read_at** | Option<**String**> | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -10,6 +10,7 @@ Name | Type | Description | Notes
**recommended_capacity** | Option<**i32**> | | [optional] **recommended_capacity** | Option<**i32**> | | [optional]
**created_at** | **String** | | **created_at** | **String** | |
**favorites** | **i32** | | [default to 0] **favorites** | **i32** | | [default to 0]
**visits** | Option<**i32**> | | [optional][default to 0]
**heat** | **i32** | | [default to 0] **heat** | **i32** | | [default to 0]
**id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. |
**image_url** | **String** | | **image_url** | **String** | |
@ -18,6 +19,7 @@ Name | Type | Description | Notes
**occupants** | **i32** | | [default to 0] **occupants** | **i32** | | [default to 0]
**organization** | **String** | | [default to vrchat] **organization** | **String** | | [default to vrchat]
**popularity** | **i32** | | [default to 0] **popularity** | **i32** | | [default to 0]
**preview_youtube_id** | Option<**String**> | | [optional]
**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>** | |

View File

@ -1,6 +1,6 @@
# \NotificationsApi # \NotificationsApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -1,6 +1,6 @@
# \PermissionsApi # \PermissionsApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -1,6 +1,6 @@
# \PlayermoderationApi # \PlayermoderationApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -5,6 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**action** | [**crate::models::GroupJoinRequestAction**](GroupJoinRequestAction.md) | | **action** | [**crate::models::GroupJoinRequestAction**](GroupJoinRequestAction.md) | |
**block** | Option<**bool**> | Whether to block the user from requesting again | [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

@ -5,10 +5,10 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**created_at** | **String** | | **created_at** | **String** | |
**details** | **String** | **NOTICE:** This is not a JSON object, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType. | [default to {}] **details** | [**serde_json::Value**](.md) | |
**id** | **String** | | **id** | **String** | |
**message** | **String** | | **message** | **String** | |
**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. | **receiver_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]
**r#type** | [**crate::models::NotificationType**](NotificationType.md) | | **r#type** | [**crate::models::NotificationType**](NotificationType.md) | |

View File

@ -6,6 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **String** | | **id** | **String** | |
**steam_item_id** | **String** | | **steam_item_id** | **String** | |
**oculus_sku** | Option<**String**> | | [optional]
**google_product_id** | Option<**String**> | | [optional]
**google_plan_id** | Option<**String**> | | [optional]
**pico_sku** | Option<**String**> | | [optional]
**amount** | **f32** | | **amount** | **f32** | |
**description** | **String** | | **description** | **String** | |
**period** | [**crate::models::SubscriptionPeriod**](SubscriptionPeriod.md) | | **period** | [**crate::models::SubscriptionPeriod**](SubscriptionPeriod.md) | |

View File

@ -1,6 +1,6 @@
# \SystemApi # \SystemApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -5,6 +5,8 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **String** | | **id** | **String** | |
**user_id** | Option<**String**> | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional]
**user_display_name** | Option<**String**> | | [optional]
**status** | [**crate::models::TransactionStatus**](TransactionStatus.md) | | **status** | [**crate::models::TransactionStatus**](TransactionStatus.md) | |
**subscription** | [**crate::models::Subscription**](Subscription.md) | | **subscription** | [**crate::models::Subscription**](Subscription.md) | |
**sandbox** | **bool** | | [default to false] **sandbox** | **bool** | | [default to false]
@ -13,6 +15,8 @@ Name | Type | Description | Notes
**steam** | Option<[**crate::models::TransactionSteamInfo**](TransactionSteamInfo.md)> | | [optional] **steam** | Option<[**crate::models::TransactionSteamInfo**](TransactionSteamInfo.md)> | | [optional]
**agreement** | Option<[**crate::models::TransactionAgreement**](TransactionAgreement.md)> | | [optional] **agreement** | Option<[**crate::models::TransactionAgreement**](TransactionAgreement.md)> | | [optional]
**error** | **String** | | **error** | **String** | |
**is_gift** | Option<**bool**> | | [optional][default to false]
**is_tokens** | Option<**bool**> | | [optional][default to false]
[[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

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**unity_version** | **String** | | [default to 5.3.4p1] **unity_version** | **String** | | [default to 5.3.4p1]
**impostor_url** | Option<**String**> | | [optional] **impostor_url** | Option<**String**> | | [optional]
**scan_status** | Option<**String**> | | [optional] **scan_status** | Option<**String**> | | [optional]
**variant** | Option<**String**> | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) [[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

@ -12,6 +12,7 @@ Name | Type | Description | Notes
**status_description** | Option<**String**> | | [optional] **status_description** | Option<**String**> | | [optional]
**bio** | Option<**String**> | | [optional] **bio** | Option<**String**> | | [optional]
**bio_links** | Option<**Vec<String>**> | | [optional] **bio_links** | Option<**Vec<String>**> | | [optional]
**pronouns** | Option<**String**> | | [optional]
**user_icon** | Option<**String**> | MUST be a valid VRChat /file/ url. | [optional] **user_icon** | Option<**String**> | MUST be a valid VRChat /file/ url. | [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

@ -5,10 +5,12 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**allow_avatar_copying** | **bool** | | [default to true] **allow_avatar_copying** | **bool** | | [default to true]
**badges** | Option<[**Vec<crate::models::Badge>**](Badge.md)> | | [optional]
**bio** | **String** | | **bio** | **String** | |
**bio_links** | **Vec<String>** | | **bio_links** | **Vec<String>** | |
**current_avatar_image_url** | **String** | When profilePicOverride is not empty, use it instead. | **current_avatar_image_url** | **String** | When profilePicOverride is not empty, use it instead. |
**current_avatar_thumbnail_image_url** | **String** | When profilePicOverride is not empty, use it instead. | **current_avatar_thumbnail_image_url** | **String** | When profilePicOverride is not empty, use it instead. |
**current_avatar_tags** | **Vec<String>** | |
**date_joined** | [**String**](string.md) | | **date_joined** | [**String**](string.md) | |
**developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | | **developer_type** | [**crate::models::DeveloperType**](DeveloperType.md) | |
**display_name** | **String** | A users visual display name. This is what shows up in-game, and can different from their `username`. Changing display name is restricted to a cooldown period. | **display_name** | **String** | A users visual display name. This is what shows up in-game, and can different from their `username`. Changing display name is restricted to a cooldown period. |
@ -23,6 +25,7 @@ Name | Type | Description | Notes
**location** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional] **location** | Option<**String**> | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
**note** | Option<**String**> | | [optional] **note** | Option<**String**> | | [optional]
**profile_pic_override** | **String** | | **profile_pic_override** | **String** | |
**pronouns** | **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) | |
**status_description** | **String** | | **status_description** | **String** | |

View File

@ -1,6 +1,6 @@
# \UsersApi # \UsersApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------
@ -106,7 +106,7 @@ Name | Type | Description | Required | Notes
## get_user_groups ## get_user_groups
> Vec<crate::models::LimitedGroup> get_user_groups(user_id) > Vec<crate::models::LimitedUserGroups> get_user_groups(user_id)
Get User Groups Get User Groups
Get user's public groups Get user's public groups
@ -120,7 +120,7 @@ Name | Type | Description | Required | Notes
### Return type ### Return type
[**Vec<crate::models::LimitedGroup>**](LimitedGroup.md) [**Vec<crate::models::LimitedUserGroups>**](LimitedUserGroups.md)
### Authorization ### Authorization

View File

@ -4,7 +4,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**can_pubilsh** | **bool** | | [default to true] **can_publish** | **bool** | | [default to true]
[[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

@ -1,6 +1,6 @@
# \WorldsApi # \WorldsApi
All URIs are relative to *https://api.vrchat.cloud/api/1* All URIs are relative to *https://vrchat.com/api/1*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -40,7 +40,7 @@ impl Configuration {
impl Default for Configuration { impl Default for Configuration {
fn default() -> Self { fn default() -> Self {
Configuration { Configuration {
base_path: "https://api.vrchat.cloud/api/1".to_owned(), base_path: "https://vrchat.com/api/1".to_owned(),
user_agent: Some("vrchatapi-rust".to_owned()), user_agent: Some("vrchatapi-rust".to_owned()),
client: reqwest::Client::builder().cookie_store(true).build().unwrap(), client: reqwest::Client::builder().cookie_store(true).build().unwrap(),
basic_auth: None, basic_auth: None,

View File

@ -1245,7 +1245,7 @@ pub fn get_group_post(configuration: &configuration::Configuration, group_id: &s
} }
/// Returns a list of members that have requested to join the Group. /// Returns a list of members that have requested to join the Group.
pub fn get_group_requests(configuration: &configuration::Configuration, group_id: &str, n: Option<i32>, offset: Option<i32>) -> Result<Vec<crate::models::GroupMember>, Error<GetGroupRequestsError>> { pub fn get_group_requests(configuration: &configuration::Configuration, group_id: &str, n: Option<i32>, offset: Option<i32>, blocked: Option<bool>) -> Result<Vec<crate::models::GroupMember>, Error<GetGroupRequestsError>> {
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;
@ -1259,6 +1259,9 @@ pub fn get_group_requests(configuration: &configuration::Configuration, group_id
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) = blocked {
local_var_req_builder = local_var_req_builder.query(&[("blocked", &local_var_str.to_string())]);
}
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
} }

View File

@ -156,7 +156,7 @@ pub fn get_user_group_requests(configuration: &configuration::Configuration, use
} }
/// Get user's public groups /// Get user's public groups
pub fn get_user_groups(configuration: &configuration::Configuration, user_id: &str) -> Result<Vec<crate::models::LimitedGroup>, Error<GetUserGroupsError>> { pub fn get_user_groups(configuration: &configuration::Configuration, user_id: &str) -> Result<Vec<crate::models::LimitedUserGroups>, Error<GetUserGroupsError>> {
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;

51
src/models/badge.rs Normal file
View File

@ -0,0 +1,51 @@
/*
* VRChat API Documentation
*
*
* Contact: vrchatapi.lpv0t@aries.fyi
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Badge {
/// only present in CurrentUser badges
#[serde(rename = "assignedAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub assigned_at: Option<Option<String>>,
#[serde(rename = "badgeDescription")]
pub badge_description: String,
#[serde(rename = "badgeId")]
pub badge_id: String,
/// direct url to image
#[serde(rename = "badgeImageUrl")]
pub badge_image_url: String,
#[serde(rename = "badgeName")]
pub badge_name: String,
/// only present in CurrentUser badges
#[serde(rename = "hidden", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub hidden: Option<Option<bool>>,
#[serde(rename = "showcased")]
pub showcased: bool,
/// only present in CurrentUser badges
#[serde(rename = "updatedAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<Option<String>>,
}
impl Badge {
pub fn new(badge_description: String, badge_id: String, badge_image_url: String, badge_name: String, showcased: bool) -> Badge {
Badge {
assigned_at: None,
badge_description,
badge_id,
badge_image_url,
badge_name,
hidden: None,
showcased,
updated_at: None,
}
}
}

View File

@ -17,7 +17,7 @@ pub struct CreateInstanceRequest {
#[serde(rename = "type")] #[serde(rename = "type")]
pub r#type: crate::models::InstanceType, pub r#type: crate::models::InstanceType,
#[serde(rename = "region")] #[serde(rename = "region")]
pub region: crate::models::Region, pub region: crate::models::InstanceRegion,
/// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise
#[serde(rename = "ownerId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] #[serde(rename = "ownerId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub owner_id: Option<Option<String>>, pub owner_id: Option<Option<String>>,
@ -28,13 +28,21 @@ pub struct CreateInstanceRequest {
pub group_access_type: Option<crate::models::GroupAccessType>, pub group_access_type: Option<crate::models::GroupAccessType>,
#[serde(rename = "queueEnabled", skip_serializing_if = "Option::is_none")] #[serde(rename = "queueEnabled", skip_serializing_if = "Option::is_none")]
pub queue_enabled: Option<bool>, pub queue_enabled: Option<bool>,
/// The time after which users won't be allowed to join the instance /// The time after which users won't be allowed to join the instance. This doesn't work for public instances.
#[serde(rename = "closedAt", skip_serializing_if = "Option::is_none")] #[serde(rename = "closedAt", skip_serializing_if = "Option::is_none")]
pub closed_at: Option<String>, pub closed_at: Option<String>,
/// Only applies to invite type instances to make them invite+
#[serde(rename = "canRequestInvite", skip_serializing_if = "Option::is_none")]
pub can_request_invite: Option<bool>,
/// Currently unused, but will eventually be a flag to set if the closing of the instance should kick people.
#[serde(rename = "hardClose", skip_serializing_if = "Option::is_none")]
pub hard_close: Option<bool>,
#[serde(rename = "inviteOnly", skip_serializing_if = "Option::is_none")]
pub invite_only: Option<bool>,
} }
impl CreateInstanceRequest { impl CreateInstanceRequest {
pub fn new(world_id: String, r#type: crate::models::InstanceType, region: crate::models::Region) -> CreateInstanceRequest { pub fn new(world_id: String, r#type: crate::models::InstanceType, region: crate::models::InstanceRegion) -> CreateInstanceRequest {
CreateInstanceRequest { CreateInstanceRequest {
world_id, world_id,
r#type, r#type,
@ -44,6 +52,9 @@ impl CreateInstanceRequest {
group_access_type: None, group_access_type: None,
queue_enabled: None, queue_enabled: None,
closed_at: None, closed_at: None,
can_request_invite: None,
hard_close: None,
invite_only: None,
} }
} }
} }

View File

@ -25,6 +25,9 @@ pub struct CurrentUser {
pub active_friends: Option<Vec<String>>, pub active_friends: Option<Vec<String>>,
#[serde(rename = "allowAvatarCopying")] #[serde(rename = "allowAvatarCopying")]
pub allow_avatar_copying: bool, pub allow_avatar_copying: bool,
///
#[serde(rename = "badges", skip_serializing_if = "Option::is_none")]
pub badges: Option<Vec<crate::models::Badge>>,
#[serde(rename = "bio")] #[serde(rename = "bio")]
pub bio: String, pub bio: String,
/// ///
@ -40,8 +43,8 @@ pub struct CurrentUser {
/// When profilePicOverride is not empty, use it instead. /// When profilePicOverride is not empty, use it instead.
#[serde(rename = "currentAvatarThumbnailImageUrl")] #[serde(rename = "currentAvatarThumbnailImageUrl")]
pub current_avatar_thumbnail_image_url: String, pub current_avatar_thumbnail_image_url: String,
#[serde(rename = "currentAvatarTags", skip_serializing_if = "Option::is_none")] #[serde(rename = "currentAvatarTags")]
pub current_avatar_tags: Option<Vec<String>>, pub current_avatar_tags: Vec<String>,
#[serde(rename = "date_joined")] #[serde(rename = "date_joined")]
pub date_joined: String, pub date_joined: String,
#[serde(rename = "developerType")] #[serde(rename = "developerType")]
@ -85,6 +88,8 @@ pub struct CurrentUser {
pub last_activity: Option<String>, pub last_activity: Option<String>,
#[serde(rename = "last_login")] #[serde(rename = "last_login")]
pub last_login: String, pub last_login: String,
#[serde(rename = "last_mobile", deserialize_with = "Option::deserialize")]
pub last_mobile: 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`. /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
#[serde(rename = "last_platform")] #[serde(rename = "last_platform")]
pub last_platform: String, pub last_platform: String,
@ -96,6 +101,8 @@ pub struct CurrentUser {
pub oculus_id: String, pub oculus_id: String,
#[serde(rename = "googleId", skip_serializing_if = "Option::is_none")] #[serde(rename = "googleId", skip_serializing_if = "Option::is_none")]
pub google_id: Option<String>, pub google_id: Option<String>,
#[serde(rename = "googleDetails", skip_serializing_if = "Option::is_none")]
pub google_details: Option<serde_json::Value>,
#[serde(rename = "picoId", skip_serializing_if = "Option::is_none")] #[serde(rename = "picoId", skip_serializing_if = "Option::is_none")]
pub pico_id: Option<String>, pub pico_id: Option<String>,
#[serde(rename = "viveId", skip_serializing_if = "Option::is_none")] #[serde(rename = "viveId", skip_serializing_if = "Option::is_none")]
@ -111,6 +118,8 @@ pub struct CurrentUser {
pub presence: Option<Box<crate::models::CurrentUserPresence>>, pub presence: Option<Box<crate::models::CurrentUserPresence>>,
#[serde(rename = "profilePicOverride")] #[serde(rename = "profilePicOverride")]
pub profile_pic_override: String, pub profile_pic_override: String,
#[serde(rename = "pronouns")]
pub pronouns: String,
#[serde(rename = "state")] #[serde(rename = "state")]
pub state: crate::models::UserState, pub state: crate::models::UserState,
#[serde(rename = "status")] #[serde(rename = "status")]
@ -143,7 +152,7 @@ pub struct CurrentUser {
} }
impl CurrentUser { impl CurrentUser {
pub fn new(accepted_tos_version: i32, allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar: String, current_avatar_asset_url: String, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, email_verified: bool, friend_group_names: Vec<String>, friend_key: String, friends: Vec<String>, has_birthday: bool, has_email: bool, has_logged_in_from_client: bool, has_pending_email: bool, home_location: String, id: String, is_friend: bool, last_login: String, last_platform: String, obfuscated_email: String, obfuscated_pending_email: String, oculus_id: String, past_display_names: Vec<crate::models::PastDisplayName>, profile_pic_override: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, status_first_time: bool, status_history: Vec<String>, steam_details: serde_json::Value, steam_id: String, tags: Vec<String>, two_factor_auth_enabled: bool, unsubscribe: bool, user_icon: String) -> CurrentUser { pub fn new(accepted_tos_version: i32, allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar: String, current_avatar_asset_url: String, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, current_avatar_tags: Vec<String>, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, email_verified: bool, friend_group_names: Vec<String>, friend_key: String, friends: Vec<String>, has_birthday: bool, has_email: bool, has_logged_in_from_client: bool, has_pending_email: bool, home_location: String, id: String, is_friend: bool, last_login: String, last_mobile: Option<String>, last_platform: String, obfuscated_email: String, obfuscated_pending_email: String, oculus_id: String, past_display_names: Vec<crate::models::PastDisplayName>, profile_pic_override: String, pronouns: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, status_first_time: bool, status_history: Vec<String>, steam_details: serde_json::Value, steam_id: String, tags: Vec<String>, two_factor_auth_enabled: bool, unsubscribe: bool, user_icon: String) -> CurrentUser {
CurrentUser { CurrentUser {
accepted_tos_version, accepted_tos_version,
accepted_privacy_version: None, accepted_privacy_version: None,
@ -151,13 +160,14 @@ impl CurrentUser {
account_deletion_log: None, account_deletion_log: None,
active_friends: None, active_friends: None,
allow_avatar_copying, allow_avatar_copying,
badges: None,
bio, bio,
bio_links, bio_links,
current_avatar, current_avatar,
current_avatar_asset_url, current_avatar_asset_url,
current_avatar_image_url, current_avatar_image_url,
current_avatar_thumbnail_image_url, current_avatar_thumbnail_image_url,
current_avatar_tags: None, current_avatar_tags,
date_joined, date_joined,
developer_type, developer_type,
display_name, display_name,
@ -178,11 +188,13 @@ impl CurrentUser {
is_friend, is_friend,
last_activity: None, last_activity: None,
last_login, last_login,
last_mobile,
last_platform, last_platform,
obfuscated_email, obfuscated_email,
obfuscated_pending_email, obfuscated_pending_email,
oculus_id, oculus_id,
google_id: None, google_id: None,
google_details: None,
pico_id: None, pico_id: None,
vive_id: None, vive_id: None,
offline_friends: None, offline_friends: None,
@ -190,6 +202,7 @@ impl CurrentUser {
past_display_names, past_display_names,
presence: None, presence: None,
profile_pic_override, profile_pic_override,
pronouns,
state, state,
status, status,
status_description, status_description,

View File

@ -15,8 +15,8 @@ pub enum GroupAccessType {
Public, Public,
#[serde(rename = "plus")] #[serde(rename = "plus")]
Plus, Plus,
#[serde(rename = "member")] #[serde(rename = "members")]
Member, Members,
} }
@ -25,7 +25,7 @@ impl ToString for GroupAccessType {
match self { match self {
Self::Public => String::from("public"), Self::Public => String::from("public"),
Self::Plus => String::from("plus"), Self::Plus => String::from("plus"),
Self::Member => String::from("member"), Self::Members => String::from("members"),
} }
} }
} }

View File

@ -45,7 +45,7 @@ pub struct Instance {
#[serde(rename = "platforms")] #[serde(rename = "platforms")]
pub platforms: Box<crate::models::InstancePlatforms>, pub platforms: Box<crate::models::InstancePlatforms>,
#[serde(rename = "region")] #[serde(rename = "region")]
pub region: crate::models::Region, pub region: crate::models::InstanceRegion,
#[serde(rename = "secureName")] #[serde(rename = "secureName")]
pub secure_name: String, pub secure_name: String,
#[serde(rename = "shortName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] #[serde(rename = "shortName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
@ -98,7 +98,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>, r#type: crate::models::InstanceType, world_id: String, queue_enabled: bool, queue_size: i32, recommended_capacity: i32, strict: bool, user_count: i32, world: crate::models::World) -> 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::InstanceRegion, secure_name: String, tags: Vec<String>, r#type: crate::models::InstanceType, world_id: String, queue_enabled: bool, queue_size: i32, recommended_capacity: i32, strict: bool, user_count: i32, world: crate::models::World) -> Instance {
Instance { Instance {
active, active,
can_request_invite, can_request_invite,

View File

@ -0,0 +1,44 @@
/*
* VRChat API Documentation
*
*
* Contact: vrchatapi.lpv0t@aries.fyi
* Generated by: https://openapi-generator.tech
*/
/// InstanceRegion : Instance region
/// Instance region
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum InstanceRegion {
#[serde(rename = "us")]
Us,
#[serde(rename = "use")]
Use,
#[serde(rename = "eu")]
Eu,
#[serde(rename = "jp")]
Jp,
}
impl ToString for InstanceRegion {
fn to_string(&self) -> String {
match self {
Self::Us => String::from("us"),
Self::Use => String::from("use"),
Self::Eu => String::from("eu"),
Self::Jp => String::from("jp"),
}
}
}
impl Default for InstanceRegion {
fn default() -> InstanceRegion {
Self::Us
}
}

View File

@ -14,12 +14,17 @@
pub struct LimitedUser { pub struct LimitedUser {
#[serde(rename = "bio", skip_serializing_if = "Option::is_none")] #[serde(rename = "bio", skip_serializing_if = "Option::is_none")]
pub bio: Option<String>, pub bio: Option<String>,
///
#[serde(rename = "bioLinks", skip_serializing_if = "Option::is_none")]
pub bio_links: Option<Vec<String>>,
/// When profilePicOverride is not empty, use it instead. /// When profilePicOverride is not empty, use it instead.
#[serde(rename = "currentAvatarImageUrl", skip_serializing_if = "Option::is_none")] #[serde(rename = "currentAvatarImageUrl", skip_serializing_if = "Option::is_none")]
pub current_avatar_image_url: Option<String>, pub current_avatar_image_url: Option<String>,
/// When profilePicOverride is not empty, use it instead. /// When profilePicOverride is not empty, use it instead.
#[serde(rename = "currentAvatarThumbnailImageUrl", skip_serializing_if = "Option::is_none")] #[serde(rename = "currentAvatarThumbnailImageUrl", skip_serializing_if = "Option::is_none")]
pub current_avatar_thumbnail_image_url: Option<String>, pub current_avatar_thumbnail_image_url: Option<String>,
#[serde(rename = "currentAvatarTags", skip_serializing_if = "Option::is_none")]
pub current_avatar_tags: Option<Vec<String>>,
#[serde(rename = "developerType")] #[serde(rename = "developerType")]
pub developer_type: crate::models::DeveloperType, pub developer_type: crate::models::DeveloperType,
#[serde(rename = "displayName")] #[serde(rename = "displayName")]
@ -36,6 +41,8 @@ pub struct LimitedUser {
pub last_platform: String, pub last_platform: String,
#[serde(rename = "profilePicOverride", skip_serializing_if = "Option::is_none")] #[serde(rename = "profilePicOverride", skip_serializing_if = "Option::is_none")]
pub profile_pic_override: Option<String>, pub profile_pic_override: Option<String>,
#[serde(rename = "pronouns", skip_serializing_if = "Option::is_none")]
pub pronouns: Option<String>,
#[serde(rename = "status")] #[serde(rename = "status")]
pub status: crate::models::UserStatus, pub status: crate::models::UserStatus,
#[serde(rename = "statusDescription")] #[serde(rename = "statusDescription")]
@ -59,8 +66,10 @@ impl LimitedUser {
pub fn new(developer_type: crate::models::DeveloperType, display_name: String, id: String, is_friend: bool, last_platform: String, status: crate::models::UserStatus, status_description: String, tags: Vec<String>) -> LimitedUser { pub fn new(developer_type: crate::models::DeveloperType, display_name: String, id: String, is_friend: bool, last_platform: String, status: crate::models::UserStatus, status_description: String, tags: Vec<String>) -> LimitedUser {
LimitedUser { LimitedUser {
bio: None, bio: None,
bio_links: None,
current_avatar_image_url: None, current_avatar_image_url: None,
current_avatar_thumbnail_image_url: None, current_avatar_thumbnail_image_url: None,
current_avatar_tags: None,
developer_type, developer_type,
display_name, display_name,
fallback_avatar: None, fallback_avatar: None,
@ -68,6 +77,7 @@ impl LimitedUser {
is_friend, is_friend,
last_platform, last_platform,
profile_pic_override: None, profile_pic_override: None,
pronouns: None,
status, status,
status_description, status_description,
tags, tags,

View File

@ -0,0 +1,78 @@
/*
* VRChat API Documentation
*
*
* Contact: vrchatapi.lpv0t@aries.fyi
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct LimitedUserGroups {
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "shortCode", skip_serializing_if = "Option::is_none")]
pub short_code: Option<String>,
#[serde(rename = "discriminator", skip_serializing_if = "Option::is_none")]
pub discriminator: Option<String>,
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "iconId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub icon_id: Option<Option<String>>,
#[serde(rename = "iconUrl", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub icon_url: Option<Option<String>>,
#[serde(rename = "bannerId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub banner_id: Option<Option<String>>,
#[serde(rename = "bannerUrl", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub banner_url: Option<Option<String>>,
#[serde(rename = "privacy", skip_serializing_if = "Option::is_none")]
pub privacy: Option<String>,
#[serde(rename = "lastPostCreatedAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub last_post_created_at: Option<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.
#[serde(rename = "ownerId", skip_serializing_if = "Option::is_none")]
pub owner_id: Option<String>,
#[serde(rename = "memberCount", skip_serializing_if = "Option::is_none")]
pub member_count: Option<i32>,
#[serde(rename = "groupId", skip_serializing_if = "Option::is_none")]
pub group_id: Option<String>,
#[serde(rename = "memberVisibility", skip_serializing_if = "Option::is_none")]
pub member_visibility: Option<String>,
#[serde(rename = "isRepresenting", skip_serializing_if = "Option::is_none")]
pub is_representing: Option<bool>,
#[serde(rename = "mutualGroup", skip_serializing_if = "Option::is_none")]
pub mutual_group: Option<bool>,
#[serde(rename = "lastPostReadAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub last_post_read_at: Option<Option<String>>,
}
impl LimitedUserGroups {
pub fn new() -> LimitedUserGroups {
LimitedUserGroups {
id: None,
name: None,
short_code: None,
discriminator: None,
description: None,
icon_id: None,
icon_url: None,
banner_id: None,
banner_url: None,
privacy: None,
last_post_created_at: None,
owner_id: None,
member_count: None,
group_id: None,
member_visibility: None,
is_representing: None,
mutual_group: None,
last_post_read_at: None,
}
}
}

View File

@ -25,6 +25,8 @@ pub struct LimitedWorld {
pub created_at: String, pub created_at: String,
#[serde(rename = "favorites")] #[serde(rename = "favorites")]
pub favorites: i32, pub favorites: i32,
#[serde(rename = "visits", skip_serializing_if = "Option::is_none")]
pub visits: Option<i32>,
#[serde(rename = "heat")] #[serde(rename = "heat")]
pub heat: i32, pub heat: i32,
/// 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.
@ -42,6 +44,8 @@ pub struct LimitedWorld {
pub organization: String, pub organization: String,
#[serde(rename = "popularity")] #[serde(rename = "popularity")]
pub popularity: i32, pub popularity: i32,
#[serde(rename = "previewYoutubeId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub preview_youtube_id: Option<Option<String>>,
#[serde(rename = "publicationDate")] #[serde(rename = "publicationDate")]
pub publication_date: String, pub publication_date: String,
#[serde(rename = "releaseStatus")] #[serde(rename = "releaseStatus")]
@ -70,6 +74,7 @@ impl LimitedWorld {
recommended_capacity: None, recommended_capacity: None,
created_at, created_at,
favorites, favorites,
visits: None,
heat, heat,
id, id,
image_url, image_url,
@ -78,6 +83,7 @@ impl LimitedWorld {
occupants, occupants,
organization, organization,
popularity, popularity,
preview_youtube_id: None,
publication_date, publication_date,
release_status, release_status,
tags, tags,

View File

@ -18,6 +18,8 @@ pub mod avatar;
pub use self::avatar::Avatar; pub use self::avatar::Avatar;
pub mod avatar_unity_package_url_object; pub mod avatar_unity_package_url_object;
pub use self::avatar_unity_package_url_object::AvatarUnityPackageUrlObject; pub use self::avatar_unity_package_url_object::AvatarUnityPackageUrlObject;
pub mod badge;
pub use self::badge::Badge;
pub mod ban_group_member_request; pub mod ban_group_member_request;
pub use self::ban_group_member_request::BanGroupMemberRequest; pub use self::ban_group_member_request::BanGroupMemberRequest;
pub mod create_avatar_request; pub mod create_avatar_request;
@ -136,6 +138,8 @@ pub mod instance;
pub use self::instance::Instance; pub use self::instance::Instance;
pub mod instance_platforms; pub mod instance_platforms;
pub use self::instance_platforms::InstancePlatforms; pub use self::instance_platforms::InstancePlatforms;
pub mod instance_region;
pub use self::instance_region::InstanceRegion;
pub mod instance_short_name_response; pub mod instance_short_name_response;
pub use self::instance_short_name_response::InstanceShortNameResponse; pub use self::instance_short_name_response::InstanceShortNameResponse;
pub mod instance_type; pub mod instance_type;
@ -162,6 +166,8 @@ pub mod limited_unity_package;
pub use self::limited_unity_package::LimitedUnityPackage; pub use self::limited_unity_package::LimitedUnityPackage;
pub mod limited_user; pub mod limited_user;
pub use self::limited_user::LimitedUser; pub use self::limited_user::LimitedUser;
pub mod limited_user_groups;
pub use self::limited_user_groups::LimitedUserGroups;
pub mod limited_world; pub mod limited_world;
pub use self::limited_world::LimitedWorld; pub use self::limited_world::LimitedWorld;
pub mod mime_type; pub mod mime_type;

View File

@ -13,12 +13,16 @@
pub struct RespondGroupJoinRequest { pub struct RespondGroupJoinRequest {
#[serde(rename = "action")] #[serde(rename = "action")]
pub action: crate::models::GroupJoinRequestAction, pub action: crate::models::GroupJoinRequestAction,
/// Whether to block the user from requesting again
#[serde(rename = "block", skip_serializing_if = "Option::is_none")]
pub block: Option<bool>,
} }
impl RespondGroupJoinRequest { impl RespondGroupJoinRequest {
pub fn new(action: crate::models::GroupJoinRequestAction) -> RespondGroupJoinRequest { pub fn new(action: crate::models::GroupJoinRequestAction) -> RespondGroupJoinRequest {
RespondGroupJoinRequest { RespondGroupJoinRequest {
action, action,
block: None,
} }
} }
} }

View File

@ -14,17 +14,16 @@
pub struct SentNotification { pub struct SentNotification {
#[serde(rename = "created_at")] #[serde(rename = "created_at")]
pub created_at: String, pub created_at: String,
/// **NOTICE:** This is not a JSON object, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType.
#[serde(rename = "details")] #[serde(rename = "details")]
pub details: String, pub details: serde_json::Value,
#[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.
#[serde(rename = "recieverUserId")] #[serde(rename = "receiverUserId")]
pub reciever_user_id: String, pub receiver_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. /// 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 = "senderUserId")] #[serde(rename = "senderUserId")]
pub sender_user_id: String, pub sender_user_id: String,
@ -37,13 +36,13 @@ pub struct SentNotification {
impl SentNotification { impl 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 { pub fn new(created_at: String, details: serde_json::Value, id: String, message: String, receiver_user_id: String, sender_user_id: String, r#type: crate::models::NotificationType) -> SentNotification {
SentNotification { SentNotification {
created_at, created_at,
details, details,
id, id,
message, message,
reciever_user_id, receiver_user_id,
sender_user_id, sender_user_id,
sender_username: None, sender_username: None,
r#type, r#type,

View File

@ -16,6 +16,14 @@ pub struct Subscription {
pub id: String, pub id: String,
#[serde(rename = "steamItemId")] #[serde(rename = "steamItemId")]
pub steam_item_id: String, pub steam_item_id: String,
#[serde(rename = "oculusSku", skip_serializing_if = "Option::is_none")]
pub oculus_sku: Option<String>,
#[serde(rename = "googleProductId", skip_serializing_if = "Option::is_none")]
pub google_product_id: Option<String>,
#[serde(rename = "googlePlanId", skip_serializing_if = "Option::is_none")]
pub google_plan_id: Option<String>,
#[serde(rename = "picoSku", skip_serializing_if = "Option::is_none")]
pub pico_sku: Option<String>,
#[serde(rename = "amount")] #[serde(rename = "amount")]
pub amount: f32, pub amount: f32,
#[serde(rename = "description")] #[serde(rename = "description")]
@ -32,6 +40,10 @@ impl Subscription {
Subscription { Subscription {
id, id,
steam_item_id, steam_item_id,
oculus_sku: None,
google_product_id: None,
google_plan_id: None,
pico_sku: None,
amount, amount,
description, description,
period, period,

View File

@ -14,6 +14,11 @@
pub struct Transaction { pub struct Transaction {
#[serde(rename = "id")] #[serde(rename = "id")]
pub id: String, pub 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.
#[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
pub user_id: Option<String>,
#[serde(rename = "userDisplayName", skip_serializing_if = "Option::is_none")]
pub user_display_name: Option<String>,
#[serde(rename = "status")] #[serde(rename = "status")]
pub status: crate::models::TransactionStatus, pub status: crate::models::TransactionStatus,
#[serde(rename = "subscription")] #[serde(rename = "subscription")]
@ -30,6 +35,10 @@ pub struct Transaction {
pub agreement: Option<Box<crate::models::TransactionAgreement>>, pub agreement: Option<Box<crate::models::TransactionAgreement>>,
#[serde(rename = "error")] #[serde(rename = "error")]
pub error: String, pub error: String,
#[serde(rename = "isGift", skip_serializing_if = "Option::is_none")]
pub is_gift: Option<bool>,
#[serde(rename = "isTokens", skip_serializing_if = "Option::is_none")]
pub is_tokens: Option<bool>,
} }
impl Transaction { impl Transaction {
@ -37,6 +46,8 @@ 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,
user_id: None,
user_display_name: None,
status, status,
subscription: Box::new(subscription), subscription: Box::new(subscription),
sandbox, sandbox,
@ -45,6 +56,8 @@ impl Transaction {
steam: None, steam: None,
agreement: None, agreement: None,
error, error,
is_gift: None,
is_tokens: None,
} }
} }
} }

View File

@ -37,6 +37,8 @@ pub struct UnityPackage {
pub impostor_url: Option<Option<String>>, pub impostor_url: Option<Option<String>>,
#[serde(rename = "scanStatus", skip_serializing_if = "Option::is_none")] #[serde(rename = "scanStatus", skip_serializing_if = "Option::is_none")]
pub scan_status: Option<String>, pub scan_status: Option<String>,
#[serde(rename = "variant", skip_serializing_if = "Option::is_none")]
pub variant: Option<String>,
} }
impl UnityPackage { impl UnityPackage {
@ -55,6 +57,7 @@ impl UnityPackage {
unity_version, unity_version,
impostor_url: None, impostor_url: None,
scan_status: None, scan_status: None,
variant: None,
} }
} }
} }

View File

@ -28,6 +28,8 @@ pub struct UpdateUserRequest {
pub bio: Option<String>, pub bio: Option<String>,
#[serde(rename = "bioLinks", skip_serializing_if = "Option::is_none")] #[serde(rename = "bioLinks", skip_serializing_if = "Option::is_none")]
pub bio_links: Option<Vec<String>>, pub bio_links: Option<Vec<String>>,
#[serde(rename = "pronouns", skip_serializing_if = "Option::is_none")]
pub pronouns: Option<String>,
/// MUST be a valid VRChat /file/ url. /// MUST be a valid VRChat /file/ url.
#[serde(rename = "userIcon", skip_serializing_if = "Option::is_none")] #[serde(rename = "userIcon", skip_serializing_if = "Option::is_none")]
pub user_icon: Option<String>, pub user_icon: Option<String>,
@ -44,6 +46,7 @@ impl UpdateUserRequest {
status_description: None, status_description: None,
bio: None, bio: None,
bio_links: None, bio_links: None,
pronouns: None,
user_icon: None, user_icon: None,
} }
} }

View File

@ -13,6 +13,9 @@
pub struct User { pub struct User {
#[serde(rename = "allowAvatarCopying")] #[serde(rename = "allowAvatarCopying")]
pub allow_avatar_copying: bool, pub allow_avatar_copying: bool,
///
#[serde(rename = "badges", skip_serializing_if = "Option::is_none")]
pub badges: Option<Vec<crate::models::Badge>>,
#[serde(rename = "bio")] #[serde(rename = "bio")]
pub bio: String, pub bio: String,
#[serde(rename = "bioLinks")] #[serde(rename = "bioLinks")]
@ -23,6 +26,8 @@ pub struct User {
/// When profilePicOverride is not empty, use it instead. /// When profilePicOverride is not empty, use it instead.
#[serde(rename = "currentAvatarThumbnailImageUrl")] #[serde(rename = "currentAvatarThumbnailImageUrl")]
pub current_avatar_thumbnail_image_url: String, pub current_avatar_thumbnail_image_url: String,
#[serde(rename = "currentAvatarTags")]
pub current_avatar_tags: Vec<String>,
#[serde(rename = "date_joined")] #[serde(rename = "date_joined")]
pub date_joined: String, pub date_joined: String,
#[serde(rename = "developerType")] #[serde(rename = "developerType")]
@ -59,6 +64,8 @@ pub struct User {
pub note: Option<String>, pub note: Option<String>,
#[serde(rename = "profilePicOverride")] #[serde(rename = "profilePicOverride")]
pub profile_pic_override: String, pub profile_pic_override: String,
#[serde(rename = "pronouns")]
pub pronouns: String,
#[serde(rename = "state")] #[serde(rename = "state")]
pub state: crate::models::UserState, pub state: crate::models::UserState,
#[serde(rename = "status")] #[serde(rename = "status")]
@ -85,13 +92,15 @@ pub struct User {
} }
impl User { impl User {
pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, friend_key: String, id: String, is_friend: bool, last_activity: String, last_login: String, last_platform: String, profile_pic_override: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String) -> User { pub fn new(allow_avatar_copying: bool, bio: String, bio_links: Vec<String>, current_avatar_image_url: String, current_avatar_thumbnail_image_url: String, current_avatar_tags: Vec<String>, date_joined: String, developer_type: crate::models::DeveloperType, display_name: String, friend_key: String, id: String, is_friend: bool, last_activity: String, last_login: String, last_platform: String, profile_pic_override: String, pronouns: String, state: crate::models::UserState, status: crate::models::UserStatus, status_description: String, tags: Vec<String>, user_icon: String) -> User {
User { User {
allow_avatar_copying, allow_avatar_copying,
badges: None,
bio, bio,
bio_links, bio_links,
current_avatar_image_url, current_avatar_image_url,
current_avatar_thumbnail_image_url, current_avatar_thumbnail_image_url,
current_avatar_tags,
date_joined, date_joined,
developer_type, developer_type,
display_name, display_name,
@ -106,6 +115,7 @@ impl User {
location: None, location: None,
note: None, note: None,
profile_pic_override, profile_pic_override,
pronouns,
state, state,
status, status,
status_description, status_description,

View File

@ -11,14 +11,14 @@
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct WorldPublishStatus { pub struct WorldPublishStatus {
#[serde(rename = "canPubilsh")] #[serde(rename = "canPublish")]
pub can_pubilsh: bool, pub can_publish: bool,
} }
impl WorldPublishStatus { impl WorldPublishStatus {
pub fn new(can_pubilsh: bool) -> WorldPublishStatus { pub fn new(can_publish: bool) -> WorldPublishStatus {
WorldPublishStatus { WorldPublishStatus {
can_pubilsh, can_publish,
} }
} }
} }