gapirs-drive-v3 0.0.1

Rust library for Google API drive v0.0.1
Documentation
// 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>,
    }
}