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 `apps` resource provides a list of apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details. Some resource methods (such as `apps.get`) require an `appId`. Use the `apps.list` method to retrieve the ID for an installed application.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize)]
pub struct App {
    #[serde(rename = "authorized")]
    ///Whether the app is authorized to access data on the user's Drive.
    pub authorized: ::core::primitive::bool,
    #[serde(rename = "createInFolderTemplate")]
    ///The template URL to create a file with this app in a given folder. The template contains the {folderId} to be replaced by the folder ID house the new file.
    pub create_in_folder_template: ::alloc::string::String,
    #[serde(rename = "createUrl")]
    ///The URL to create a file with this app.
    pub create_url: ::alloc::string::String,
    #[serde(rename = "hasDriveWideScope")]
    ///Whether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the user's Drive.
    pub has_drive_wide_scope: ::core::primitive::bool,
    #[serde(rename = "icons")]
    ///The various icons for the app.
    pub icons: ::alloc::vec::Vec<crate::discovery::schemas::app_icons::AppIcons>,
    #[serde(rename = "id")]
    ///The ID of the app.
    pub id: ::alloc::string::String,
    #[serde(rename = "installed")]
    ///Whether the app is installed.
    pub installed: ::core::primitive::bool,
    #[serde(rename = "kind")]
    ///Output only. Identifies what kind of resource this is. Value: the fixed string "drive#app".
    pub kind: ::alloc::string::String,
    #[serde(rename = "longDescription")]
    ///A long description of the app.
    pub long_description: ::alloc::string::String,
    #[serde(rename = "name")]
    ///The name of the app.
    pub name: ::alloc::string::String,
    #[serde(rename = "objectType")]
    ///The type of object this app creates such as a Chart. If empty, the app name should be used instead.
    pub object_type: ::alloc::string::String,
    #[serde(rename = "openUrlTemplate")]
    ///The template URL for opening files with this app. The template contains {ids} or {exportIds} to be replaced by the actual file IDs. For more information, see Open Files for the full documentation.
    pub open_url_template: ::alloc::string::String,
    #[serde(rename = "primaryFileExtensions")]
    ///The list of primary file extensions.
    pub primary_file_extensions: ::alloc::vec::Vec<::alloc::string::String>,
    #[serde(rename = "primaryMimeTypes")]
    ///The list of primary MIME types.
    pub primary_mime_types: ::alloc::vec::Vec<::alloc::string::String>,
    #[serde(rename = "productId")]
    ///The ID of the product listing for this app.
    pub product_id: ::alloc::string::String,
    #[serde(rename = "productUrl")]
    ///A link to the product listing for this app.
    pub product_url: ::alloc::string::String,
    #[serde(rename = "secondaryFileExtensions")]
    ///The list of secondary file extensions.
    pub secondary_file_extensions: ::alloc::vec::Vec<::alloc::string::String>,
    #[serde(rename = "secondaryMimeTypes")]
    ///The list of secondary MIME types.
    pub secondary_mime_types: ::alloc::vec::Vec<::alloc::string::String>,
    #[serde(rename = "shortDescription")]
    ///A short description of the app.
    pub short_description: ::alloc::string::String,
    #[serde(rename = "supportsCreate")]
    ///Whether this app supports creating objects.
    pub supports_create: ::core::primitive::bool,
    #[serde(rename = "supportsImport")]
    ///Whether this app supports importing from Google Docs.
    pub supports_import: ::core::primitive::bool,
    #[serde(rename = "supportsMultiOpen")]
    ///Whether this app supports opening more than one file.
    pub supports_multi_open: ::core::primitive::bool,
    #[serde(rename = "supportsOfflineCreate")]
    ///Whether this app supports creating files when offline.
    pub supports_offline_create: ::core::primitive::bool,
    #[serde(rename = "useByDefault")]
    ///Whether the app is selected as the default handler for the types it supports.
    pub use_by_default: ::core::primitive::bool,
}
///The `apps` resource provides a list of apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details. Some resource methods (such as `apps.get`) require an `appId`. Use the `apps.list` method to retrieve the ID for an installed application.
#[derive(Debug, Clone, ::serde::Deserialize, ::serde::Serialize, Default)]
pub struct AppPartial {
    #[serde(rename = "authorized")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether the app is authorized to access data on the user's Drive.
    pub authorized: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "createInFolderTemplate")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The template URL to create a file with this app in a given folder. The template contains the {folderId} to be replaced by the folder ID house the new file.
    pub create_in_folder_template: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "createUrl")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The URL to create a file with this app.
    pub create_url: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "hasDriveWideScope")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the user's Drive.
    pub has_drive_wide_scope: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "icons")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The various icons for the app.
    pub icons: ::core::option::Option<
        ::alloc::vec::Vec<crate::discovery::schemas::app_icons::AppIconsPartial>,
    >,
    #[serde(rename = "id")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The ID of the app.
    pub id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "installed")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether the app is installed.
    pub installed: ::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#app".
    pub kind: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "longDescription")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A long description of the app.
    pub long_description: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "name")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The name of the app.
    pub name: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "objectType")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The type of object this app creates such as a Chart. If empty, the app name should be used instead.
    pub object_type: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "openUrlTemplate")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The template URL for opening files with this app. The template contains {ids} or {exportIds} to be replaced by the actual file IDs. For more information, see Open Files for the full documentation.
    pub open_url_template: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "primaryFileExtensions")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The list of primary file extensions.
    pub primary_file_extensions: ::core::option::Option<
        ::alloc::vec::Vec<::alloc::string::String>,
    >,
    #[serde(rename = "primaryMimeTypes")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The list of primary MIME types.
    pub primary_mime_types: ::core::option::Option<
        ::alloc::vec::Vec<::alloc::string::String>,
    >,
    #[serde(rename = "productId")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The ID of the product listing for this app.
    pub product_id: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "productUrl")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A link to the product listing for this app.
    pub product_url: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "secondaryFileExtensions")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The list of secondary file extensions.
    pub secondary_file_extensions: ::core::option::Option<
        ::alloc::vec::Vec<::alloc::string::String>,
    >,
    #[serde(rename = "secondaryMimeTypes")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///The list of secondary MIME types.
    pub secondary_mime_types: ::core::option::Option<
        ::alloc::vec::Vec<::alloc::string::String>,
    >,
    #[serde(rename = "shortDescription")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///A short description of the app.
    pub short_description: ::core::option::Option<::alloc::string::String>,
    #[serde(rename = "supportsCreate")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether this app supports creating objects.
    pub supports_create: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "supportsImport")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether this app supports importing from Google Docs.
    pub supports_import: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "supportsMultiOpen")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether this app supports opening more than one file.
    pub supports_multi_open: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "supportsOfflineCreate")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether this app supports creating files when offline.
    pub supports_offline_create: ::core::option::Option<::core::primitive::bool>,
    #[serde(rename = "useByDefault")]
    #[serde(skip_serializing_if = "::core::option::Option::is_none")]
    ///Whether the app is selected as the default handler for the types it supports.
    pub use_by_default: ::core::option::Option<::core::primitive::bool>,
}