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
/*
* traQ v3
*
* traQ v3 API
*
* The version of the OpenAPI document: 3.0
*
* Generated by: https://openapi-generator.tech
*/
/// MessageStamp : メッセージに押されたスタンプ
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct MessageStamp {
/// ユーザーUUID
#[serde(rename = "userId")]
pub user_id: uuid::Uuid,
/// スタンプUUID
#[serde(rename = "stampId")]
pub stamp_id: uuid::Uuid,
/// スタンプ数
#[serde(rename = "count")]
pub count: i32,
/// スタンプが最初に押された日時
#[serde(rename = "createdAt")]
pub created_at: String,
/// スタンプが最後に押された日時
#[serde(rename = "updatedAt")]
pub updated_at: String,
}
impl MessageStamp {
/// メッセージに押されたスタンプ
pub fn new(
user_id: uuid::Uuid,
stamp_id: uuid::Uuid,
count: i32,
created_at: String,
updated_at: String,
) -> MessageStamp {
MessageStamp {
user_id,
stamp_id,
count,
created_at,
updated_at,
}
}
}