mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-25 16:59:30 +00:00
Upgrade Rust SDK to spec 1.4.1
This commit is contained in:
30
src/models/user_exists.rs
Normal file
30
src/models/user_exists.rs
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* The version of the OpenAPI document: 1.4.1
|
||||
* Contact: me@ruby.js.org
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
/// UserExists : Status object representing if a queried user by username or userId exists or not. This model is primarily used by the `/auth/exists` endpoint, which in turn is used during registration. Please see the documentation on that endpoint for more information on usage.
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UserExists {
|
||||
/// Status if a user exist with that username or userId.
|
||||
#[serde(rename = "userExists")]
|
||||
pub user_exists: bool,
|
||||
}
|
||||
|
||||
impl UserExists {
|
||||
/// Status object representing if a queried user by username or userId exists or not. This model is primarily used by the `/auth/exists` endpoint, which in turn is used during registration. Please see the documentation on that endpoint for more information on usage.
|
||||
pub fn new(user_exists: bool) -> UserExists {
|
||||
UserExists {
|
||||
user_exists,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user