Upgrade Rust SDK to spec 1.18.1

This commit is contained in:
VRCCat
2024-09-11 01:11:08 +00:00
parent 81b7d01d13
commit a0c6ed9f6e
9 changed files with 34 additions and 25 deletions

View File

@ -15,13 +15,17 @@ pub struct UserExists {
/// Status if a user exist with that username or userId.
#[serde(rename = "userExists")]
pub user_exists: bool,
/// Is the username valid?
#[serde(rename = "nameOk")]
pub name_ok: 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 {
pub fn new(user_exists: bool, name_ok: bool) -> UserExists {
UserExists {
user_exists,
name_ok,
}
}
}