mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Update Rust SDK to spec 1.1.2
This commit is contained in:
@ -47,7 +47,7 @@ docs/InlineResponse2004.md
|
|||||||
docs/InlineResponse2005.md
|
docs/InlineResponse2005.md
|
||||||
docs/InlineResponse2006.md
|
docs/InlineResponse2006.md
|
||||||
docs/InlineResponse2007.md
|
docs/InlineResponse2007.md
|
||||||
docs/InlineResponse401.md
|
docs/InlineResponse403.md
|
||||||
docs/Instance.md
|
docs/Instance.md
|
||||||
docs/InstancePlatforms.md
|
docs/InstancePlatforms.md
|
||||||
docs/LimitedUnityPackage.md
|
docs/LimitedUnityPackage.md
|
||||||
@ -57,6 +57,9 @@ docs/MimeType.md
|
|||||||
docs/Notification.md
|
docs/Notification.md
|
||||||
docs/NotificationType.md
|
docs/NotificationType.md
|
||||||
docs/NotificationsApi.md
|
docs/NotificationsApi.md
|
||||||
|
docs/PastDisplayName.md
|
||||||
|
docs/Permission.md
|
||||||
|
docs/PermissionsApi.md
|
||||||
docs/Platform.md
|
docs/Platform.md
|
||||||
docs/PlayerModeration.md
|
docs/PlayerModeration.md
|
||||||
docs/PlayerModerationType.md
|
docs/PlayerModerationType.md
|
||||||
@ -81,6 +84,7 @@ src/apis/files_api.rs
|
|||||||
src/apis/friends_api.rs
|
src/apis/friends_api.rs
|
||||||
src/apis/mod.rs
|
src/apis/mod.rs
|
||||||
src/apis/notifications_api.rs
|
src/apis/notifications_api.rs
|
||||||
|
src/apis/permissions_api.rs
|
||||||
src/apis/playermoderation_api.rs
|
src/apis/playermoderation_api.rs
|
||||||
src/apis/system_api.rs
|
src/apis/system_api.rs
|
||||||
src/apis/users_api.rs
|
src/apis/users_api.rs
|
||||||
@ -127,7 +131,7 @@ src/models/inline_response_200_4.rs
|
|||||||
src/models/inline_response_200_5.rs
|
src/models/inline_response_200_5.rs
|
||||||
src/models/inline_response_200_6.rs
|
src/models/inline_response_200_6.rs
|
||||||
src/models/inline_response_200_7.rs
|
src/models/inline_response_200_7.rs
|
||||||
src/models/inline_response_401.rs
|
src/models/inline_response_403.rs
|
||||||
src/models/instance.rs
|
src/models/instance.rs
|
||||||
src/models/instance_platforms.rs
|
src/models/instance_platforms.rs
|
||||||
src/models/limited_unity_package.rs
|
src/models/limited_unity_package.rs
|
||||||
@ -137,6 +141,8 @@ src/models/mime_type.rs
|
|||||||
src/models/mod.rs
|
src/models/mod.rs
|
||||||
src/models/notification.rs
|
src/models/notification.rs
|
||||||
src/models/notification_type.rs
|
src/models/notification_type.rs
|
||||||
|
src/models/past_display_name.rs
|
||||||
|
src/models/permission.rs
|
||||||
src/models/platform.rs
|
src/models/platform.rs
|
||||||
src/models/player_moderation.rs
|
src/models/player_moderation.rs
|
||||||
src/models/player_moderation_type.rs
|
src/models/player_moderation_type.rs
|
||||||
|
@ -1 +1 @@
|
|||||||
5.2.0
|
5.3.0-SNAPSHOT
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "vrchatapi"
|
name = "vrchatapi"
|
||||||
version = "1.0.5"
|
version = "1.1.2"
|
||||||
authors = ["OpenAPI Generator team and contributors"]
|
authors = ["OpenAPI Generator team and contributors"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
@ -75,7 +75,7 @@ This endpoint does not need any parameter.
|
|||||||
> crate::models::Success logout()
|
> crate::models::Success logout()
|
||||||
Logout
|
Logout
|
||||||
|
|
||||||
Invalidates the auth cookie.
|
Invalidates the login session.
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
[apiKeyCookie](../README.md#apiKeyCookie), [authCookie](../README.md#authCookie)
|
[authCookie](../README.md#authCookie)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
[apiKeyCookie](../README.md#apiKeyCookie), [authCookie](../README.md#authCookie)
|
[authCookie](../README.md#authCookie)
|
||||||
|
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|||||||
**bio_links** | **Vec<String>** | |
|
**bio_links** | **Vec<String>** | |
|
||||||
**profile_pic_override** | **String** | |
|
**profile_pic_override** | **String** | |
|
||||||
**status_description** | **String** | |
|
**status_description** | **String** | |
|
||||||
**past_display_names** | **Vec<String>** | |
|
**past_display_names** | [**Vec<crate::models::PastDisplayName>**](PastDisplayName.md) | |
|
||||||
**has_email** | **bool** | |
|
**has_email** | **bool** | |
|
||||||
**has_pending_email** | **bool** | |
|
**has_pending_email** | **bool** | |
|
||||||
**obfuscated_email** | **String** | |
|
**obfuscated_email** | **String** | |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# InlineResponse401
|
# InlineResponse403
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
12
docs/PastDisplayName.md
Normal file
12
docs/PastDisplayName.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# PastDisplayName
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**display_name** | **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)
|
||||||
|
|
||||||
|
|
14
docs/Permission.md
Normal file
14
docs/Permission.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Permission
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **String** | |
|
||||||
|
**owner_id** | **String** | | [readonly]
|
||||||
|
**name** | **String** | |
|
||||||
|
**data** | Option<[**serde_json::Value**](.md)> | | [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)
|
||||||
|
|
||||||
|
|
67
docs/PermissionsApi.md
Normal file
67
docs/PermissionsApi.md
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# \PermissionsApi
|
||||||
|
|
||||||
|
All URIs are relative to *https://api.vrchat.cloud/api/1*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**get_assigned_permissions**](PermissionsApi.md#get_assigned_permissions) | **GET** /auth/permissions | Get Assigned Permission
|
||||||
|
[**get_permission**](PermissionsApi.md#get_permission) | **GET** /permissions/{permissionId} | Get Permission
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## get_assigned_permissions
|
||||||
|
|
||||||
|
> Vec<crate::models::Permission> get_assigned_permissions()
|
||||||
|
Get Assigned Permission
|
||||||
|
|
||||||
|
Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
This endpoint does not need any parameter.
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**Vec<crate::models::Permission>**](Permission.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie), [authCookie](../README.md#authCookie)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
|
## get_permission
|
||||||
|
|
||||||
|
> crate::models::Permission get_permission(permission_id)
|
||||||
|
Get Permission
|
||||||
|
|
||||||
|
Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Required | Notes
|
||||||
|
------------- | ------------- | ------------- | ------------- | -------------
|
||||||
|
**permission_id** | **String** | | [required] |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**crate::models::Permission**](Permission.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[apiKeyCookie](../README.md#apiKeyCookie), [authCookie](../README.md#authCookie)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
@ -12,7 +12,11 @@ openapi-generator-cli generate \
|
|||||||
-i https://vrchatapi.github.io/specification/openapi.yaml \
|
-i https://vrchatapi.github.io/specification/openapi.yaml \
|
||||||
--http-user-agent="vrchatapi-rust"
|
--http-user-agent="vrchatapi-rust"
|
||||||
|
|
||||||
|
# Add license and description to Cargo.toml
|
||||||
sed -i '/^edition = "2018"/i license = "MIT"' Cargo.toml
|
sed -i '/^edition = "2018"/i license = "MIT"' Cargo.toml
|
||||||
sed -i '/^edition = "2018"/a description="VRChat API Library for Rust"' Cargo.toml
|
sed -i '/^edition = "2018"/a description="VRChat API Library for Rust"' Cargo.toml
|
||||||
|
|
||||||
|
# Remove messily pasted markdown at top of every file
|
||||||
|
find src -type f -exec sed -i '/VRChat API Banner/d' {} \;
|
||||||
|
|
||||||
cargo build
|
cargo build
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||||
#
|
#
|
||||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
||||||
|
|
||||||
git_user_id=$1
|
git_user_id=$1
|
||||||
git_repo_id=$2
|
git_repo_id=$2
|
||||||
@ -55,4 +55,3 @@ git pull origin master
|
|||||||
# Pushes (Forces) the changes in the local repository up to the remote repository
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||||
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
||||||
git push origin master 2>&1 | grep -v 'To https'
|
git push origin master 2>&1 | grep -v 'To https'
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -67,6 +67,7 @@ pub mod favorites_api;
|
|||||||
pub mod files_api;
|
pub mod files_api;
|
||||||
pub mod friends_api;
|
pub mod friends_api;
|
||||||
pub mod notifications_api;
|
pub mod notifications_api;
|
||||||
|
pub mod permissions_api;
|
||||||
pub mod playermoderation_api;
|
pub mod playermoderation_api;
|
||||||
pub mod system_api;
|
pub mod system_api;
|
||||||
pub mod users_api;
|
pub mod users_api;
|
||||||
|
File diff suppressed because one or more lines are too long
87
src/apis/permissions_api.rs
Normal file
87
src/apis/permissions_api.rs
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.1.2
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
use reqwest;
|
||||||
|
|
||||||
|
use crate::apis::ResponseContent;
|
||||||
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
|
||||||
|
/// struct for typed errors of method `get_assigned_permissions`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum GetAssignedPermissionsError {
|
||||||
|
Status401(crate::models::Error),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
|
/// struct for typed errors of method `get_permission`
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum GetPermissionError {
|
||||||
|
Status401(crate::models::Error),
|
||||||
|
UnknownValue(serde_json::Value),
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
|
||||||
|
pub fn get_assigned_permissions(configuration: &configuration::Configuration, ) -> Result<Vec<crate::models::Permission>, Error<GetAssignedPermissionsError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/auth/permissions", configuration.base_path);
|
||||||
|
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||||
|
|
||||||
|
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||||
|
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
|
|
||||||
|
let local_var_status = local_var_resp.status();
|
||||||
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
|
} else {
|
||||||
|
let local_var_entity: Option<GetAssignedPermissionsError> = serde_json::from_str(&local_var_content).ok();
|
||||||
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
Err(Error::ResponseError(local_var_error))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
|
||||||
|
pub fn get_permission(configuration: &configuration::Configuration, permission_id: &str) -> Result<crate::models::Permission, Error<GetPermissionError>> {
|
||||||
|
|
||||||
|
let local_var_client = &configuration.client;
|
||||||
|
|
||||||
|
let local_var_uri_str = format!("{}/permissions/{permissionId}", configuration.base_path, permissionId=crate::apis::urlencode(permission_id));
|
||||||
|
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_user_agent) = configuration.user_agent {
|
||||||
|
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||||
|
}
|
||||||
|
|
||||||
|
let local_var_req = local_var_req_builder.build()?;
|
||||||
|
let mut local_var_resp = local_var_client.execute(local_var_req)?;
|
||||||
|
|
||||||
|
let local_var_status = local_var_resp.status();
|
||||||
|
let local_var_content = local_var_resp.text()?;
|
||||||
|
|
||||||
|
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||||
|
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||||
|
} else {
|
||||||
|
let local_var_entity: Option<GetPermissionError> = serde_json::from_str(&local_var_content).ok();
|
||||||
|
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||||
|
Err(Error::ResponseError(local_var_error))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
27
src/models/inline_response_403.rs
Normal file
27
src/models/inline_response_403.rs
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.1.2
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
pub struct InlineResponse403 {
|
||||||
|
#[serde(rename = "error")]
|
||||||
|
pub error: Box<crate::models::Error>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl InlineResponse403 {
|
||||||
|
pub fn new(error: crate::models::Error) -> InlineResponse403 {
|
||||||
|
InlineResponse403 {
|
||||||
|
error: Box::new(error),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -80,8 +80,8 @@ pub mod inline_response_200_6;
|
|||||||
pub use self::inline_response_200_6::InlineResponse2006;
|
pub use self::inline_response_200_6::InlineResponse2006;
|
||||||
pub mod inline_response_200_7;
|
pub mod inline_response_200_7;
|
||||||
pub use self::inline_response_200_7::InlineResponse2007;
|
pub use self::inline_response_200_7::InlineResponse2007;
|
||||||
pub mod inline_response_401;
|
pub mod inline_response_403;
|
||||||
pub use self::inline_response_401::InlineResponse401;
|
pub use self::inline_response_403::InlineResponse403;
|
||||||
pub mod instance;
|
pub mod instance;
|
||||||
pub use self::instance::Instance;
|
pub use self::instance::Instance;
|
||||||
pub mod instance_platforms;
|
pub mod instance_platforms;
|
||||||
@ -98,6 +98,10 @@ pub mod notification;
|
|||||||
pub use self::notification::Notification;
|
pub use self::notification::Notification;
|
||||||
pub mod notification_type;
|
pub mod notification_type;
|
||||||
pub use self::notification_type::NotificationType;
|
pub use self::notification_type::NotificationType;
|
||||||
|
pub mod past_display_name;
|
||||||
|
pub use self::past_display_name::PastDisplayName;
|
||||||
|
pub mod permission;
|
||||||
|
pub use self::permission::Permission;
|
||||||
pub mod platform;
|
pub mod platform;
|
||||||
pub use self::platform::Platform;
|
pub use self::platform::Platform;
|
||||||
pub mod player_moderation;
|
pub mod player_moderation;
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
30
src/models/past_display_name.rs
Normal file
30
src/models/past_display_name.rs
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.1.2
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
pub struct PastDisplayName {
|
||||||
|
#[serde(rename = "displayName")]
|
||||||
|
pub display_name: String,
|
||||||
|
#[serde(rename = "updated_at")]
|
||||||
|
pub updated_at: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl PastDisplayName {
|
||||||
|
pub fn new(display_name: String, updated_at: String) -> PastDisplayName {
|
||||||
|
PastDisplayName {
|
||||||
|
display_name,
|
||||||
|
updated_at,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
36
src/models/permission.rs
Normal file
36
src/models/permission.rs
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* VRChat API Documentation
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.1.2
|
||||||
|
* Contact: me@ruby.js.org
|
||||||
|
* Generated by: https://openapi-generator.tech
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
pub struct Permission {
|
||||||
|
#[serde(rename = "id")]
|
||||||
|
pub id: String,
|
||||||
|
#[serde(rename = "ownerId")]
|
||||||
|
pub owner_id: String,
|
||||||
|
#[serde(rename = "name")]
|
||||||
|
pub name: String,
|
||||||
|
#[serde(rename = "data", skip_serializing_if = "Option::is_none")]
|
||||||
|
pub data: Option<serde_json::Value>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Permission {
|
||||||
|
pub fn new(id: String, owner_id: String, name: String) -> Permission {
|
||||||
|
Permission {
|
||||||
|
id,
|
||||||
|
owner_id,
|
||||||
|
name,
|
||||||
|
data: None,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user