Struct google_drive2::File [] [src]

pub struct File {
    pub has_thumbnail: Option<bool>,
    pub mime_type: Option<String>,
    pub app_data_contents: Option<bool>,
    pub thumbnail_link: Option<String>,
    pub labels: Option<FileLabels>,
    pub indexable_text: Option<FileIndexableText>,
    pub thumbnail_version: Option<String>,
    pub explicitly_trashed: Option<bool>,
    pub is_app_authorized: Option<bool>,
    pub last_modifying_user_name: Option<String>,
    pub writers_can_share: Option<bool>,
    pub owned_by_me: Option<bool>,
    pub shared_with_me_date: Option<String>,
    pub sharing_user: Option<User>,
    pub video_media_metadata: Option<FileVideoMediaMetadata>,
    pub last_modifying_user: Option<User>,
    pub copyable: Option<bool>,
    pub folder_color_rgb: Option<String>,
    pub owner_names: Option<Vec<String>>,
    pub kind: Option<String>,
    pub id: Option<String>,
    pub web_view_link: Option<String>,
    pub version: Option<String>,
    pub parents: Option<Vec<ParentReference>>,
    pub export_links: Option<HashMap<String, String>>,
    pub shared: Option<bool>,
    pub icon_link: Option<String>,
    pub full_file_extension: Option<String>,
    pub open_with_links: Option<HashMap<String, String>>,
    pub can_read_revisions: Option<bool>,
    pub default_open_with_link: Option<String>,
    pub description: Option<String>,
    pub web_content_link: Option<String>,
    pub editable: Option<bool>,
    pub marked_viewed_by_me_date: Option<String>,
    pub embed_link: Option<String>,
    pub can_comment: Option<bool>,
    pub file_extension: Option<String>,
    pub modified_date: Option<String>,
    pub created_date: Option<String>,
    pub last_viewed_by_me_date: Option<String>,
    pub properties: Option<Vec<Property>>,
    pub md5_checksum: Option<String>,
    pub permissions: Option<Vec<Permission>>,
    pub image_media_metadata: Option<FileImageMediaMetadata>,
    pub owners: Option<Vec<User>>,
    pub etag: Option<String>,
    pub alternate_link: Option<String>,
    pub title: Option<String>,
    pub modified_by_me_date: Option<String>,
    pub thumbnail: Option<FileThumbnail>,
    pub download_url: Option<String>,
    pub user_permission: Option<Permission>,
    pub spaces: Option<Vec<String>>,
    pub shareable: Option<bool>,
    pub original_filename: Option<String>,
    pub quota_bytes_used: Option<String>,
    pub head_revision_id: Option<String>,
    pub self_link: Option<String>,
    pub file_size: 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.

The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.

Whether this file is in the Application Data folder.

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

A group of labels for the file.

Indexable text attributes for the file (can only be written)

The thumbnail version for use in client-contructable thumbnail URLs or thumbnail cache invalidation.

Whether this file has been explicitly trashed, as opposed to recursively trashed.

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

Name of the last user to modify this file.

Whether writers can share the document with other users.

Whether the file is owned by the current user.

Time at which this file was shared with the user (formatted RFC 3339 timestamp).

User that shared the item with the current user, if available.

Metadata about video media. This will only be present for video types.

The last user to modify this file.

Whether the file can be copied by the current user.

Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette.

Name(s) of the owner(s) of this file.

The type of file. This is always drive#file.

The ID of the file.

A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.

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 requesting user.

Collection of parent folders which contain this file. Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.

Links for exporting Google Docs to specific formats.

Whether the file has been shared.

A link to the file's icon.

The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.

A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.

Whether the current user has read access to the Revisions resource of the file.

A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.

A short description of the file.

A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.

Whether the file can be edited by the current user.

Deprecated.

A link for embedding the file.

Whether the current user can comment on the file.

The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.

Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.

Create time for this file (formatted RFC 3339 timestamp).

Last time this file was viewed by the user (formatted RFC 3339 timestamp).

The list of properties.

An MD5 checksum for the content of this file. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.

The list of permissions for users with access to this file.

Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.

The owner(s) of this file.

ETag of the file.

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

The title of this file.

Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.

A thumbnail for the file. This will only be used if Drive cannot generate a standard thumbnail.

no description provided

The permissions for the authenticated user on this file.

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

Whether the file's sharing settings can be modified by the current user.

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

The number of quota bytes used by this file.

The ID of the file's head revision. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.

A link back to this file.

The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.

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.

impl RequestValue for File
[src]

impl Resource for File
[src]

impl ResponseResult for File
[src]