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! 

///Information about the user, the user's Drive, and system capabilities.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct About {
    #[serde(rename = "appInstalled")]
    ///Whether the user has installed the requesting app.
    pub app_installed: ::core::primitive::bool,
    #[serde(rename = "canCreateDrives")]
    ///Whether the user can create shared drives.
    pub can_create_drives: ::core::primitive::bool,
    #[serde(rename = "canCreateTeamDrives")]
    ///Deprecated: Use `canCreateDrives` instead.
    pub can_create_team_drives: ::core::primitive::bool,
    #[serde(rename = "driveThemes")]
    ///A list of themes that are supported for shared drives.
    pub drive_themes: ::alloc::vec::Vec<about_drive_themes_additional::DriveThemes>,
    #[serde(rename = "exportFormats")]
    ///A map of source MIME type to possible targets for all supported exports.
    pub export_formats: about_export_formats_additional::ExportFormats,
    #[serde(rename = "folderColorPalette")]
    ///The currently supported folder colors as RGB hex strings.
    pub folder_color_palette: ::alloc::vec::Vec<::alloc::string::String>,
    #[serde(rename = "importFormats")]
    ///A map of source MIME type to possible targets for all supported imports.
    pub import_formats: about_import_formats_additional::ImportFormats,
    #[serde(rename = "kind")]
    ///Identifies what kind of resource this is. Value: the fixed string `"drive#about"`.
    pub kind: ::alloc::string::String,
    #[serde(rename = "maxImportSizes")]
    ///A map of maximum import sizes by MIME type, in bytes.
    pub max_import_sizes: about_max_import_sizes_additional::MaxImportSizes,
    #[serde(rename = "maxUploadSize")]
    ///The maximum upload size in bytes.
    pub max_upload_size: ::alloc::string::String,
    #[serde(rename = "storageQuota")]
    ///The user's storage quota limits and usage. For users that are part of an organization with pooled storage, information about the limit and usage across all services is for the organization, rather than the individual user. All fields are measured in bytes.
    pub storage_quota: about_storage_quota_additional::StorageQuota,
    #[serde(rename = "teamDriveThemes")]
    ///Deprecated: Use `driveThemes` instead.
    pub team_drive_themes: ::alloc::vec::Vec<
        about_team_drive_themes_additional::TeamDriveThemes,
    >,
    #[serde(rename = "user")]
    pub user: ::alloc::boxed::Box<crate::discovery::schemas::user::User>,
}
///Information about the user, the user's Drive, and system capabilities.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct AboutPartial {
    #[serde(rename = "appInstalled")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether the user has installed the requesting app.
    pub app_installed: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "canCreateDrives")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether the user can create shared drives.
    pub can_create_drives: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "canCreateTeamDrives")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Deprecated: Use `canCreateDrives` instead.
    pub can_create_team_drives: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "driveThemes")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A list of themes that are supported for shared drives.
    pub drive_themes: ::core::option::Option<
        ::alloc::vec::Vec<about_drive_themes_additional::DriveThemesPartial>,
    >,
    #[serde(rename = "exportFormats")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A map of source MIME type to possible targets for all supported exports.
    pub export_formats: ::core::option::Option<
        about_export_formats_additional::ExportFormatsPartial,
    >,
    #[serde(rename = "folderColorPalette")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The currently supported folder colors as RGB hex strings.
    pub folder_color_palette: ::core::option::Option<
        ::alloc::vec::Vec<::alloc::string::String>,
    >,
    #[serde(rename = "importFormats")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A map of source MIME type to possible targets for all supported imports.
    pub import_formats: ::core::option::Option<
        about_import_formats_additional::ImportFormatsPartial,
    >,
    #[serde(rename = "kind")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Identifies what kind of resource this is. Value: the fixed string `"drive#about"`.
    pub kind: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "maxImportSizes")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A map of maximum import sizes by MIME type, in bytes.
    pub max_import_sizes: ::core::option::Option<
        about_max_import_sizes_additional::MaxImportSizesPartial,
    >,
    #[serde(rename = "maxUploadSize")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The maximum upload size in bytes.
    pub max_upload_size: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "storageQuota")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The user's storage quota limits and usage. For users that are part of an organization with pooled storage, information about the limit and usage across all services is for the organization, rather than the individual user. All fields are measured in bytes.
    pub storage_quota: ::core::option::Option<
        about_storage_quota_additional::StorageQuotaPartial,
    >,
    #[serde(rename = "teamDriveThemes")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Deprecated: Use `driveThemes` instead.
    pub team_drive_themes: ::core::option::Option<
        ::alloc::vec::Vec<about_team_drive_themes_additional::TeamDriveThemesPartial>,
    >,
    #[serde(rename = "user")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    pub user: ::core::option::Option<
        ::alloc::boxed::Box<crate::discovery::schemas::user::UserPartial>,
    >,
}
pub mod about_drive_themes_additional {
    use super::*;
    ///No description
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct DriveThemes {
        #[serde(rename = "backgroundImageLink")]
        ///A link to this theme's background image.
        pub background_image_link: ::alloc::string::String,
        #[serde(rename = "colorRgb")]
        ///The color of this theme as an RGB hex string.
        pub color_rgb: ::alloc::string::String,
        #[serde(rename = "id")]
        ///The ID of the theme.
        pub id: ::alloc::string::String,
    }
    ///No description
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct DriveThemesPartial {
        #[serde(rename = "backgroundImageLink")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///A link to this theme's background image.
        pub background_image_link: ::core::option::Option<::alloc::string::String>,
        #[serde(rename = "colorRgb")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///The color of this theme as an RGB hex string.
        pub color_rgb: ::core::option::Option<::alloc::string::String>,
        #[serde(rename = "id")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///The ID of the theme.
        pub id: ::core::option::Option<::alloc::string::String>,
    }
}
pub mod about_export_formats_additional {
    use super::*;
    ///A map of source MIME type to possible targets for all supported exports.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct ExportFormats {}
    ///A map of source MIME type to possible targets for all supported exports.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct ExportFormatsPartial {}
}
pub mod about_import_formats_additional {
    use super::*;
    ///A map of source MIME type to possible targets for all supported imports.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct ImportFormats {}
    ///A map of source MIME type to possible targets for all supported imports.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct ImportFormatsPartial {}
}
pub mod about_max_import_sizes_additional {
    use super::*;
    ///A map of maximum import sizes by MIME type, in bytes.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct MaxImportSizes {}
    ///A map of maximum import sizes by MIME type, in bytes.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct MaxImportSizesPartial {}
}
pub mod about_storage_quota_additional {
    use super::*;
    ///The user's storage quota limits and usage. For users that are part of an organization with pooled storage, information about the limit and usage across all services is for the organization, rather than the individual user. All fields are measured in bytes.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct StorageQuota {
        #[serde(rename = "limit")]
        ///The usage limit, if applicable. This will not be present if the user has unlimited storage. For users that are part of an organization with pooled storage, this is the limit for the organization, rather than the individual user.
        pub limit: ::alloc::string::String,
        #[serde(rename = "usage")]
        ///The total usage across all services. For users that are part of an organization with pooled storage, this is the usage across all services for the organization, rather than the individual user.
        pub usage: ::alloc::string::String,
        #[serde(rename = "usageInDrive")]
        ///The usage by all files in Google Drive.
        pub usage_in_drive: ::alloc::string::String,
        #[serde(rename = "usageInDriveTrash")]
        ///The usage by trashed files in Google Drive.
        pub usage_in_drive_trash: ::alloc::string::String,
    }
    ///The user's storage quota limits and usage. For users that are part of an organization with pooled storage, information about the limit and usage across all services is for the organization, rather than the individual user. All fields are measured in bytes.
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct StorageQuotaPartial {
        #[serde(rename = "limit")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///The usage limit, if applicable. This will not be present if the user has unlimited storage. For users that are part of an organization with pooled storage, this is the limit for the organization, rather than the individual user.
        pub limit: ::core::option::Option<::alloc::string::String>,
        #[serde(rename = "usage")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///The total usage across all services. For users that are part of an organization with pooled storage, this is the usage across all services for the organization, rather than the individual user.
        pub usage: ::core::option::Option<::alloc::string::String>,
        #[serde(rename = "usageInDrive")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///The usage by all files in Google Drive.
        pub usage_in_drive: ::core::option::Option<::alloc::string::String>,
        #[serde(rename = "usageInDriveTrash")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///The usage by trashed files in Google Drive.
        pub usage_in_drive_trash: ::core::option::Option<::alloc::string::String>,
    }
}
pub mod about_team_drive_themes_additional {
    use super::*;
    ///No description
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
    pub struct TeamDriveThemes {
        #[serde(rename = "backgroundImageLink")]
        ///Deprecated: Use `driveThemes/backgroundImageLink` instead.
        pub background_image_link: ::alloc::string::String,
        #[serde(rename = "colorRgb")]
        ///Deprecated: Use `driveThemes/colorRgb` instead.
        pub color_rgb: ::alloc::string::String,
        #[serde(rename = "id")]
        ///Deprecated: Use `driveThemes/id` instead.
        pub id: ::alloc::string::String,
    }
    ///No description
    #[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
    pub struct TeamDriveThemesPartial {
        #[serde(rename = "backgroundImageLink")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///Deprecated: Use `driveThemes/backgroundImageLink` instead.
        pub background_image_link: ::core::option::Option<::alloc::string::String>,
        #[serde(rename = "colorRgb")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///Deprecated: Use `driveThemes/colorRgb` instead.
        pub color_rgb: ::core::option::Option<::alloc::string::String>,
        #[serde(rename = "id")]
        #[serde(skip_serializing_if = "::core::option::Option::is_none")]
        ///Deprecated: Use `driveThemes/id` instead.
        pub id: ::core::option::Option<::alloc::string::String>,
    }
}