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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// This file was generated by code-gen. DO NOT EDIT MANUALLY!
///A comment on a file. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Comment {
#[serde(rename = "anchor")]
///A region of the document represented as a JSON string. For details on defining anchor properties, refer to \[Manage comments and replies\](https://developers.google.com/workspace/drive/api/v3/manage-comments).
pub anchor: ::alloc::string::String,
#[serde(rename = "author")]
pub author: ::alloc::boxed::Box<crate::discovery::schemas::user::User>,
#[serde(rename = "content")]
///The plain text content of the comment. This field is used for setting the content, while `htmlContent` should be displayed.
pub content: ::alloc::string::String,
#[serde(rename = "createdTime")]
///The time at which the comment was created (RFC 3339 date-time).
pub created_time: ::alloc::string::String,
#[serde(rename = "deleted")]
///Output only. Whether the comment has been deleted. A deleted comment has no content.
pub deleted: ::core::primitive::bool,
#[serde(rename = "htmlContent")]
///Output only. The content of the comment with HTML formatting.
pub html_content: ::alloc::string::String,
#[serde(rename = "id")]
///Output only. The ID of the comment.
pub id: ::alloc::string::String,
#[serde(rename = "kind")]
///Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#comment"`.
pub kind: ::alloc::string::String,
#[serde(rename = "modifiedTime")]
///The last time the comment or any of its replies was modified (RFC 3339 date-time).
pub modified_time: ::alloc::string::String,
#[serde(rename = "quotedFileContent")]
///The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
pub quoted_file_content: comment_quoted_file_content_additional::QuotedFileContent,
#[serde(rename = "replies")]
///Output only. The full list of replies to the comment in chronological order.
pub replies: ::alloc::vec::Vec<crate::discovery::schemas::reply::Reply>,
#[serde(rename = "resolved")]
///Output only. Whether the comment has been resolved by one of its replies.
pub resolved: ::core::primitive::bool,
}
///A comment on a file. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct CommentPartial {
#[serde(rename = "anchor")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///A region of the document represented as a JSON string. For details on defining anchor properties, refer to \[Manage comments and replies\](https://developers.google.com/workspace/drive/api/v3/manage-comments).
pub anchor: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "author")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
pub author: ::core::option::Option<
::alloc::boxed::Box<crate::discovery::schemas::user::UserPartial>,
>,
#[serde(rename = "content")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The plain text content of the comment. This field is used for setting the content, while `htmlContent` should be displayed.
pub content: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "createdTime")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The time at which the comment was created (RFC 3339 date-time).
pub created_time: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "deleted")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the comment has been deleted. A deleted comment has no content.
pub deleted: ::core::option::Option<::core::primitive::bool>,
#[serde(rename = "htmlContent")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The content of the comment with HTML formatting.
pub html_content: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "id")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The ID of the comment.
pub id: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "kind")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#comment"`.
pub kind: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "modifiedTime")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The last time the comment or any of its replies was modified (RFC 3339 date-time).
pub modified_time: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "quotedFileContent")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
pub quoted_file_content: ::core::option::Option<
comment_quoted_file_content_additional::QuotedFileContentPartial,
>,
#[serde(rename = "replies")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. The full list of replies to the comment in chronological order.
pub replies: ::core::option::Option<
::alloc::vec::Vec<crate::discovery::schemas::reply::ReplyPartial>,
>,
#[serde(rename = "resolved")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///Output only. Whether the comment has been resolved by one of its replies.
pub resolved: ::core::option::Option<::core::primitive::bool>,
}
pub mod comment_quoted_file_content_additional {
use super::*;
///The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct QuotedFileContent {
#[serde(rename = "mimeType")]
///The MIME type of the quoted content.
pub mime_type: ::alloc::string::String,
#[serde(rename = "value")]
///The quoted content itself. This is interpreted as plain text if set through the API.
pub value: ::alloc::string::String,
}
///The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct QuotedFileContentPartial {
#[serde(rename = "mimeType")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The MIME type of the quoted content.
pub mime_type: ::core::option::Option<::alloc::string::String>,
#[serde(rename = "value")]
#[serde(skip_serializing_if = "::core::option::Option::is_none")]
///The quoted content itself. This is interpreted as plain text if set through the API.
pub value: ::core::option::Option<::alloc::string::String>,
}
}