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 reply to a comment on a file. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Reply {
    #[serde(rename = "action")]
    ///The action the reply performed to the parent comment. Valid values are: * `resolve` * `reopen`
    pub action: ::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 reply. This field is used for setting the content, while `htmlContent` should be displayed. This is required on creates if no `action` is specified.
    pub content: ::alloc::string::String,
    #[serde(rename = "createdTime")]
    ///The time at which the reply was created (RFC 3339 date-time).
    pub created_time: ::alloc::string::String,
    #[serde(rename = "deleted")]
    ///Output only. Whether the reply has been deleted. A deleted reply has no content.
    pub deleted: ::core::primitive::bool,
    #[serde(rename = "htmlContent")]
    ///Output only. The content of the reply with HTML formatting.
    pub html_content: ::alloc::string::String,
    #[serde(rename = "id")]
    ///Output only. The ID of the reply.
    pub id: ::alloc::string::String,
    #[serde(rename = "kind")]
    ///Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#reply"`.
    pub kind: ::alloc::string::String,
    #[serde(rename = "modifiedTime")]
    ///The last time the reply was modified (RFC 3339 date-time).
    pub modified_time: ::alloc::string::String,
}
///A reply to a comment on a file. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct ReplyPartial {
    #[serde(rename = "action")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The action the reply performed to the parent comment. Valid values are: * `resolve` * `reopen`
    pub action: ::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 reply. This field is used for setting the content, while `htmlContent` should be displayed. This is required on creates if no `action` is specified.
    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 reply 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 reply has been deleted. A deleted reply 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 reply 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 reply.
    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#reply"`.
    pub kind: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "modifiedTime")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The last time the reply was modified (RFC 3339 date-time).
    pub modified_time: ::core::option::Option<::alloc::string::String>,
}