-
Notifications
You must be signed in to change notification settings - Fork 0
/
patch_client_request.rs
43 lines (40 loc) · 1.36 KB
/
patch_client_request.rs
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
/*
* traQ v3
*
* traQ v3 API
*
* The version of the OpenAPI document: 3.0
*
* Generated by: https://openapi-generator.tech
*/
/// PatchClientRequest : OAuth2クライアント情報変更リクエスト
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PatchClientRequest {
/// クライアント名
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// 説明
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// コールバックURL
#[serde(rename = "callbackUrl", skip_serializing_if = "Option::is_none")]
pub callback_url: Option<String>,
/// クライアント開発者UUID
#[serde(rename = "developerId", skip_serializing_if = "Option::is_none")]
pub developer_id: Option<uuid::Uuid>,
/// confidential client なら true, public client なら false
#[serde(rename = "confidential", skip_serializing_if = "Option::is_none")]
pub confidential: Option<bool>,
}
impl PatchClientRequest {
/// OAuth2クライアント情報変更リクエスト
pub fn new() -> PatchClientRequest {
PatchClientRequest {
name: None,
description: None,
callback_url: None,
developer_id: None,
confidential: None,
}
}
}