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
/*
* traQ v3
*
* traQ v3 API
*
* The version of the OpenAPI document: 3.0
*
* Generated by: https://openapi-generator.tech
*/
/// WebRtcAuthenticateResult : skyway用認証リクエストリザルト
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct WebRtcAuthenticateResult {
/// ピアID
#[serde(rename = "peerId")]
pub peer_id: String,
/// TTL
#[serde(rename = "ttl")]
pub ttl: i32,
/// タイムスタンプ
#[serde(rename = "timestamp")]
pub timestamp: i64,
/// 認証トークン
#[serde(rename = "authToken")]
pub auth_token: String,
}
impl WebRtcAuthenticateResult {
/// skyway用認証リクエストリザルト
pub fn new(
peer_id: String,
ttl: i32,
timestamp: i64,
auth_token: String,
) -> WebRtcAuthenticateResult {
WebRtcAuthenticateResult {
peer_id,
ttl,
timestamp,
auth_token,
}
}
}