mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 23:55:33 +00:00
Upgrade Rust SDK to spec 1.3.0
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.2
|
||||
* The version of the OpenAPI document: 1.3.0
|
||||
* Contact: me@ruby.js.org
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
@ -45,6 +45,7 @@ pub enum GetAvatarError {
|
||||
#[serde(untagged)]
|
||||
pub enum GetFavoritedAvatarsError {
|
||||
Status401(crate::models::Error),
|
||||
Status403(crate::models::Error),
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
@ -158,7 +159,7 @@ pub fn get_avatar(configuration: &configuration::Configuration, avatar_id: &str)
|
||||
}
|
||||
|
||||
/// Search and list favorited avatars by query filters.
|
||||
pub fn get_favorited_avatars(configuration: &configuration::Configuration, featured: Option<&str>, sort: Option<&str>, n: Option<i32>, order: Option<&str>, offset: Option<i32>, search: Option<&str>, tag: Option<&str>, notag: Option<&str>, release_status: Option<&str>, max_unity_version: Option<&str>, min_unity_version: Option<&str>, platform: Option<&str>, user_id: Option<&str>) -> Result<(), Error<GetFavoritedAvatarsError>> {
|
||||
pub fn get_favorited_avatars(configuration: &configuration::Configuration, featured: Option<&str>, sort: Option<&str>, n: Option<i32>, order: Option<&str>, offset: Option<i32>, search: Option<&str>, tag: Option<&str>, notag: Option<&str>, release_status: Option<&str>, max_unity_version: Option<&str>, min_unity_version: Option<&str>, platform: Option<&str>, user_id: Option<&str>) -> Result<Vec<crate::models::Avatar>, Error<GetFavoritedAvatarsError>> {
|
||||
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
@ -215,7 +216,7 @@ pub fn get_favorited_avatars(configuration: &configuration::Configuration, featu
|
||||
let local_var_content = local_var_resp.text()?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
Ok(())
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<GetFavoritedAvatarsError> = 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 };
|
||||
|
Reference in New Issue
Block a user