1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* VRChat API Documentation
*
*
* Contact: vrchatapi.lpv0t@aries.fyi
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ServiceStatus : Status information for a service request
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ServiceStatus {
#[serde(rename = "created_at")]
pub created_at: String,
/// The id of this service, NOT the id of the thing this service was requested for.
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "progress")]
pub progress: Vec<serde_json::Value>,
/// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.
#[serde(rename = "requesterUserId")]
pub requester_user_id: String,
#[serde(rename = "state")]
pub state: String,
/// The id of the thing this service was requested for.
#[serde(rename = "subjectId")]
pub subject_id: String,
/// The kind of the thing this service was requested for.
#[serde(rename = "subjectType")]
pub subject_type: String,
/// The kind of service that was requested.
#[serde(rename = "type")]
pub r#type: String,
#[serde(rename = "updated_at")]
pub updated_at: String,
}
impl ServiceStatus {
/// Status information for a service request
pub fn new(
created_at: String,
id: String,
progress: Vec<serde_json::Value>,
requester_user_id: String,
state: String,
subject_id: String,
subject_type: String,
r#type: String,
updated_at: String,
) -> ServiceStatus {
ServiceStatus {
created_at,
id,
progress,
requester_user_id,
state,
subject_id,
subject_type,
r#type,
updated_at,
}
}
}