mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
Update generate.sh spec URL
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
.travis.yml
|
||||
Cargo.toml
|
||||
docs/AccountDeletionLog.md
|
||||
docs/AddFavoriteRequest.md
|
||||
docs/AddGroupGalleryImageRequest.md
|
||||
docs/ApiConfig.md
|
||||
@ -152,6 +153,7 @@ src/apis/system_api.rs
|
||||
src/apis/users_api.rs
|
||||
src/apis/worlds_api.rs
|
||||
src/lib.rs
|
||||
src/models/account_deletion_log.rs
|
||||
src/models/add_favorite_request.rs
|
||||
src/models/add_group_gallery_image_request.rs
|
||||
src/models/api_config.rs
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "vrchatapi"
|
||||
version = "1.9.1"
|
||||
version = "1.10.1"
|
||||
authors = ["me@ariesclark.com"]
|
||||
description = "VRChat API Client for Rust"
|
||||
license = "The MIT License (MIT)"
|
||||
|
13
docs/AccountDeletionLog.md
Normal file
13
docs/AccountDeletionLog.md
Normal file
@ -0,0 +1,13 @@
|
||||
# AccountDeletionLog
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**message** | Option<**String**> | Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. | [optional][default to Deletion requested]
|
||||
**deletion_scheduled** | Option<**String**> | When the deletion is scheduled to happen, standard is 14 days after the request. | [optional]
|
||||
**date_time** | Option<**String**> | Date and time of the deletion request. | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -6,10 +6,11 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**accepted_tos_version** | **i32** | |
|
||||
**account_deletion_date** | Option<[**String**](string.md)> | | [optional]
|
||||
**active_friends** | Option<**Vec<String>**> | | [optional]
|
||||
**account_deletion_log** | Option<[**Vec<crate::models::AccountDeletionLog>**](AccountDeletionLog.md)> | | [optional]
|
||||
**active_friends** | Option<**Vec<String>**> | | [optional]
|
||||
**allow_avatar_copying** | **bool** | |
|
||||
**bio** | **String** | |
|
||||
**bio_links** | **Vec<String>** | |
|
||||
**bio_links** | **Vec<String>** | |
|
||||
**current_avatar** | **String** | |
|
||||
**current_avatar_asset_url** | **String** | |
|
||||
**current_avatar_image_url** | **String** | When profilePicOverride is not empty, use it instead. |
|
||||
|
@ -9,7 +9,7 @@ rm src/apis src/models docs -rf
|
||||
--git-user-id=vrchatapi \
|
||||
--git-repo-id=vrchatapi-rust \
|
||||
-o . \
|
||||
-i ../specification/dist/openapi.yaml \
|
||||
-i https://raw.githubusercontent.com/vrchatapi/specification/gh-pages/openapi.yaml \
|
||||
--http-user-agent="vrchatapi-rust"
|
||||
#--global-property debugOperations=true
|
||||
|
||||
|
35
src/models/account_deletion_log.rs
Normal file
35
src/models/account_deletion_log.rs
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* Contact: me@ariesclark.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct AccountDeletionLog {
|
||||
/// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user.
|
||||
#[serde(rename = "message", skip_serializing_if = "Option::is_none")]
|
||||
pub message: Option<String>,
|
||||
/// When the deletion is scheduled to happen, standard is 14 days after the request.
|
||||
#[serde(rename = "deletionScheduled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub deletion_scheduled: Option<Option<String>>,
|
||||
/// Date and time of the deletion request.
|
||||
#[serde(rename = "dateTime", skip_serializing_if = "Option::is_none")]
|
||||
pub date_time: Option<String>,
|
||||
}
|
||||
|
||||
impl AccountDeletionLog {
|
||||
pub fn new() -> AccountDeletionLog {
|
||||
AccountDeletionLog {
|
||||
message: None,
|
||||
deletion_scheduled: None,
|
||||
date_time: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,12 +15,17 @@ pub struct CurrentUser {
|
||||
pub accepted_tos_version: i32,
|
||||
#[serde(rename = "accountDeletionDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
||||
pub account_deletion_date: Option<Option<String>>,
|
||||
///
|
||||
#[serde(rename = "accountDeletionLog", skip_serializing_if = "Option::is_none")]
|
||||
pub account_deletion_log: Option<Vec<crate::models::AccountDeletionLog>>,
|
||||
///
|
||||
#[serde(rename = "activeFriends", skip_serializing_if = "Option::is_none")]
|
||||
pub active_friends: Option<Vec<String>>,
|
||||
#[serde(rename = "allowAvatarCopying")]
|
||||
pub allow_avatar_copying: bool,
|
||||
#[serde(rename = "bio")]
|
||||
pub bio: String,
|
||||
///
|
||||
#[serde(rename = "bioLinks")]
|
||||
pub bio_links: Vec<String>,
|
||||
#[serde(rename = "currentAvatar")]
|
||||
@ -120,6 +125,7 @@ impl CurrentUser {
|
||||
CurrentUser {
|
||||
accepted_tos_version,
|
||||
account_deletion_date: None,
|
||||
account_deletion_log: None,
|
||||
active_friends: None,
|
||||
allow_avatar_copying,
|
||||
bio,
|
||||
|
@ -1,3 +1,5 @@
|
||||
pub mod account_deletion_log;
|
||||
pub use self::account_deletion_log::AccountDeletionLog;
|
||||
pub mod add_favorite_request;
|
||||
pub use self::add_favorite_request::AddFavoriteRequest;
|
||||
pub mod add_group_gallery_image_request;
|
||||
|
Reference in New Issue
Block a user