mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 23:55:33 +00:00
Upgrade Rust SDK to spec 1.5.0
This commit is contained in:
32
src/models/api_health.rs
Normal file
32
src/models/api_health.rs
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* Contact: me@ruby.js.org
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct ApiHealth {
|
||||
#[serde(rename = "ok")]
|
||||
pub ok: bool,
|
||||
#[serde(rename = "serverName")]
|
||||
pub server_name: String,
|
||||
#[serde(rename = "buildVersionTag")]
|
||||
pub build_version_tag: String,
|
||||
}
|
||||
|
||||
impl ApiHealth {
|
||||
pub fn new(ok: bool, server_name: String, build_version_tag: String) -> ApiHealth {
|
||||
ApiHealth {
|
||||
ok,
|
||||
server_name,
|
||||
build_version_tag,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user