mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
* add formatting Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> * Apply Changes --------- Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com>
31 lines
681 B
Rust
31 lines
681 B
Rust
/*
|
|
* VRChat API Documentation
|
|
*
|
|
*
|
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
use crate::models;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Default, Debug, PartialEq, 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,
|
|
}
|
|
}
|
|
}
|