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! 

///The metadata for a revision to a file. Some resource methods (such as `revisions.update`) require a `revisionId`. Use the `revisions.list` method to retrieve the ID for a revision.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct Revision {
    #[serde(rename = "exportLinks")]
    ///Output only. Links for exporting Docs Editors files to specific formats.
    pub export_links: revision_export_links_additional::ExportLinks,
    #[serde(rename = "id")]
    ///Output only. The ID of the revision.
    pub id: ::alloc::string::String,
    #[serde(rename = "keepForever")]
    ///Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive.
    pub keep_forever: ::core::primitive::bool,
    #[serde(rename = "kind")]
    ///Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#revision"`.
    pub kind: ::alloc::string::String,
    #[serde(rename = "lastModifyingUser")]
    pub last_modifying_user: ::alloc::boxed::Box<crate::discovery::schemas::user::User>,
    #[serde(rename = "md5Checksum")]
    ///Output only. The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive.
    pub md5_checksum: ::alloc::string::String,
    #[serde(rename = "mimeType")]
    ///Output only. The MIME type of the revision.
    pub mime_type: ::alloc::string::String,
    #[serde(rename = "modifiedTime")]
    ///The last time the revision was modified (RFC 3339 date-time).
    pub modified_time: ::alloc::string::String,
    #[serde(rename = "originalFilename")]
    ///Output only. The original filename used to create this revision. This is only applicable to files with binary content in Drive.
    pub original_filename: ::alloc::string::String,
    #[serde(rename = "publishAuto")]
    ///Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files.
    pub publish_auto: ::core::primitive::bool,
    #[serde(rename = "published")]
    ///Whether this revision is published. This is only applicable to Docs Editors files.
    pub published: ::core::primitive::bool,
    #[serde(rename = "publishedLink")]
    ///Output only. A link to the published revision. This is only populated for Docs Editors files.
    pub published_link: ::alloc::string::String,
    #[serde(rename = "publishedOutsideDomain")]
    ///Whether this revision is published outside the domain. This is only applicable to Docs Editors files.
    pub published_outside_domain: ::core::primitive::bool,
    #[serde(rename = "size")]
    ///Output only. The size of the revision's content in bytes. This is only applicable to files with binary content in Drive.
    pub size: ::alloc::string::String,
}
///The metadata for a revision to a file. Some resource methods (such as `revisions.update`) require a `revisionId`. Use the `revisions.list` method to retrieve the ID for a revision.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct RevisionPartial {
    #[serde(rename = "exportLinks")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Output only. Links for exporting Docs Editors files to specific formats.
    pub export_links: ::core::option::Option<
        revision_export_links_additional::ExportLinksPartial,
    >,
    #[serde(rename = "id")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Output only. The ID of the revision.
    pub id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "keepForever")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive.
    pub keep_forever: ::core::option::Option<::core::primitive::bool>,
    #[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#revision"`.
    pub kind: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "lastModifyingUser")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    pub last_modifying_user: ::core::option::Option<
        ::alloc::boxed::Box<crate::discovery::schemas::user::UserPartial>,
    >,
    #[serde(rename = "md5Checksum")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Output only. The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive.
    pub md5_checksum: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "mimeType")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Output only. The MIME type of the revision.
    pub mime_type: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "modifiedTime")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The last time the revision was modified (RFC 3339 date-time).
    pub modified_time: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "originalFilename")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Output only. The original filename used to create this revision. This is only applicable to files with binary content in Drive.
    pub original_filename: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "publishAuto")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files.
    pub publish_auto: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "published")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether this revision is published. This is only applicable to Docs Editors files.
    pub published: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "publishedLink")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Output only. A link to the published revision. This is only populated for Docs Editors files.
    pub published_link: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "publishedOutsideDomain")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether this revision is published outside the domain. This is only applicable to Docs Editors files.
    pub published_outside_domain: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "size")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Output only. The size of the revision's content in bytes. This is only applicable to files with binary content in Drive.
    pub size: ::core::option::Option<::alloc::string::String>,
}
pub mod revision_export_links_additional {
    use super::*;
    ///Output only. Links for exporting Docs Editors files to specific formats.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct ExportLinks {}
    ///Output only. Links for exporting Docs Editors files to specific formats.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct ExportLinksPartial {}
}