Struct google_drive3_fork::File[][src]

pub struct File {
    pub has_thumbnail: Option<bool>,
    pub mime_type: Option<String>,
    pub modified_by_me_time: Option<String>,
    pub thumbnail_link: Option<String>,
    pub thumbnail_version: Option<String>,
    pub explicitly_trashed: Option<bool>,
    pub is_app_authorized: Option<bool>,
    pub writers_can_share: Option<bool>,
    pub owned_by_me: Option<bool>,
    pub viewed_by_me_time: Option<String>,
    pub id: Option<String>,
    pub sharing_user: Option<User>,
    pub size: Option<String>,
    pub video_media_metadata: Option<FileVideoMediaMetadata>,
    pub last_modifying_user: Option<User>,
    pub folder_color_rgb: Option<String>,
    pub app_properties: Option<HashMap<String, String>>,
    pub capabilities: Option<FileCapabilities>,
    pub properties: Option<HashMap<String, String>>,
    pub web_view_link: Option<String>,
    pub version: Option<String>,
    pub parents: Option<Vec<String>>,
    pub md5_checksum: Option<String>,
    pub shared: Option<bool>,
    pub icon_link: Option<String>,
    pub full_file_extension: Option<String>,
    pub original_filename: Option<String>,
    pub image_media_metadata: Option<FileImageMediaMetadata>,
    pub description: Option<String>,
    pub modified_time: Option<String>,
    pub viewed_by_me: Option<bool>,
    pub modified_by_me: Option<bool>,
    pub kind: Option<String>,
    pub created_time: Option<String>,
    pub quota_bytes_used: Option<String>,
    pub team_drive_id: Option<String>,
    pub trashed_time: Option<String>,
    pub shared_with_me_time: Option<String>,
    pub permissions: Option<Vec<Permission>>,
    pub viewers_can_copy_content: Option<bool>,
    pub owners: Option<Vec<User>>,
    pub name: Option<String>,
    pub web_content_link: Option<String>,
    pub trashing_user: Option<User>,
    pub spaces: Option<Vec<String>>,
    pub permission_ids: Option<Vec<String>>,
    pub trashed: Option<bool>,
    pub content_hints: Option<FileContentHints>,
    pub file_extension: Option<String>,
    pub has_augmented_permissions: Option<bool>,
    pub starred: Option<bool>,
    pub head_revision_id: Option<String>,
}

The metadata for a file.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.

The MIME type of the file. Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.

The last time the file was modified by the user (RFC 3339 date-time).

A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.

The thumbnail version for use in thumbnail cache invalidation.

Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.

Whether the file was created or opened by the requesting app.

Whether users with only writer permission can modify the file's permissions. Not populated for Team Drive files.

Whether the user owns the file. Not populated for Team Drive files.

The last time the file was viewed by the user (RFC 3339 date-time).

The ID of the file.

The user who shared the file with the requesting user, if applicable.

The size of the file's content in bytes. This is only applicable to files with binary content in Drive.

Additional metadata about video media. This may not be available immediately upon upload.

The last user to modify the file.

The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource. If an unsupported color is specified, the closest color in the palette will be used instead.

A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests.

Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests.

A link for opening the file in a relevant Google editor or viewer in a browser.

A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.

The IDs of the parent folders which contain the file. If not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.

The MD5 checksum for the content of the file. This is only applicable to files with binary content in Drive.

Whether the file has been shared. Not populated for Team Drive files.

A static, unauthenticated link to the file's icon.

The full file extension extracted from the name field. May contain multiple concatenated extensions, such as "tar.gz". This is only available for files with binary content in Drive. This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.

The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Drive.

Additional metadata about image media, if available.

A short description of the file.

The last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.

Whether the file has been viewed by this user.

Whether the file has been modified by this user.

Identifies what kind of resource this is. Value: the fixed string "drive#file".

The time at which the file was created (RFC 3339 date-time).

The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.

ID of the Team Drive the file resides in.

The time that the item was trashed (RFC 3339 date-time). Only populated for Team Drive files.

The time at which the file was shared with the user, if applicable (RFC 3339 date-time).

The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for Team Drive files.

Whether users with only reader or commenter permission can copy the file's content. This affects copy, download, and print operations.

The owners of the file. Currently, only certain legacy files may have more than one owner. Not populated for Team Drive files.

The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of Team Drives, My Drive root folder, and Application Data folder the name is constant.

A link for downloading the content of the file in a browser. This is only available for files with binary content in Drive.

If the file has been explicitly trashed, the user who trashed it. Only populated for Team Drive files.

The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.

List of permission IDs for users with access to this file.

Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, and other users cannot see files in the owner's trash.

Additional information about the content of the file. These fields are never populated in responses.

The final component of fullFileExtension. This is only available for files with binary content in Drive.

Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.

Whether the user has starred the file.

The ID of the file's head revision. This is currently only available for files with binary content in Drive.

Trait Implementations

impl Default for File
[src]

Returns the "default value" for a type. Read more

impl Clone for File
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for File
[src]

Formats the value using the given formatter. Read more

impl RequestValue for File
[src]

impl Resource for File
[src]

impl ResponseResult for File
[src]

Auto Trait Implementations

impl Send for File

impl Sync for File