woj/models/auth_200_response.rs
1/*
2 * WASM OJ Wonderland API
3 *
4 * You can interact with WASM OJ Wonderland through this API
5 *
6 * The version of the OpenAPI document: 0.0.4
7 * Contact: jacob@csie.cool
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct Auth200Response {
16 /// Whether the token is valid
17 #[serde(rename = "ok")]
18 pub ok: bool,
19 /// Whether the user is new
20 #[serde(rename = "new")]
21 pub new: bool,
22}
23
24impl Auth200Response {
25 pub fn new(ok: bool, new: bool) -> Auth200Response {
26 Auth200Response {
27 ok,
28 new,
29 }
30 }
31}
32
33