pub struct File {
Show 59 fields pub app_properties: String, pub capabilities: Option<FileCapabilities>, pub content_hints: Option<ContentHints>, pub content_restrictions: Vec<ContentRestriction>, pub copy_requires_writer_permission: Option<bool>, pub created_time: Option<DateTime<Utc>>, pub description: String, pub drive_id: String, pub explicitly_trashed: Option<bool>, pub export_links: String, pub file_extension: String, pub folder_color_rgb: String, pub full_file_extension: String, pub has_augmented_permissions: Option<bool>, pub has_thumbnail: Option<bool>, pub head_revision_id: String, pub icon_link: String, pub id: String, pub image_media_metadata: Option<ImageMediaMetadata>, pub is_app_authorized: Option<bool>, pub kind: String, pub last_modifying_user: Option<User>, pub link_share_metadata: Option<LinkShareMetadata>, pub md_5_checksum: String, pub mime_type: String, pub modified_by_me: Option<bool>, pub modified_by_me_time: Option<DateTime<Utc>>, pub modified_time: Option<DateTime<Utc>>, pub name: String, pub original_filename: String, pub owned_by_me: Option<bool>, pub owners: Vec<User>, pub parents: Vec<String>, pub permission_ids: Vec<String>, pub permissions: Vec<Permission>, pub properties: String, pub quota_bytes_used: i64, pub resource_key: String, pub shared: Option<bool>, pub shared_with_me_time: Option<DateTime<Utc>>, pub sharing_user: Option<User>, pub shortcut_details: Option<ShortcutDetails>, pub size: i64, pub spaces: Vec<String>, pub starred: Option<bool>, pub team_drive_id: String, pub thumbnail_link: String, pub thumbnail_version: i64, pub trashed: Option<bool>, pub trashed_time: Option<DateTime<Utc>>, pub trashing_user: Option<User>, pub version: i64, pub video_media_metadata: Option<VideoMediaMetadata>, pub viewed_by_me: Option<bool>, pub viewed_by_me_time: Option<DateTime<Utc>>, pub viewers_can_copy_content: Option<bool>, pub web_content_link: String, pub web_view_link: String, pub writers_can_share: Option<bool>,
}
Expand description

The metadata for a file.

Fields

app_properties: String

The metadata for a file.

capabilities: Option<FileCapabilities>

The metadata for a file.

content_hints: Option<ContentHints>

The metadata for a file.

content_restrictions: Vec<ContentRestriction>

The metadata for a file.

copy_requires_writer_permission: Option<bool>

The metadata for a file.

created_time: Option<DateTime<Utc>>

The metadata for a file.

description: String

The metadata for a file.

drive_id: String

The metadata for a file.

explicitly_trashed: Option<bool>

The metadata for a file.

export_links: String

The metadata for a file.

file_extension: String

The metadata for a file.

folder_color_rgb: String

The metadata for a file.

full_file_extension: String

The metadata for a file.

has_augmented_permissions: Option<bool>

The metadata for a file.

has_thumbnail: Option<bool>

The metadata for a file.

head_revision_id: String

The metadata for a file.

icon_link: String

The metadata for a file.

id: String

The metadata for a file.

image_media_metadata: Option<ImageMediaMetadata>

The metadata for a file.

is_app_authorized: Option<bool>

The metadata for a file.

kind: String

The metadata for a file.

last_modifying_user: Option<User>

The metadata for a file.

link_share_metadata: Option<LinkShareMetadata>

The metadata for a file.

md_5_checksum: String

The metadata for a file.

mime_type: String

The metadata for a file.

modified_by_me: Option<bool>

The metadata for a file.

modified_by_me_time: Option<DateTime<Utc>>

The metadata for a file.

modified_time: Option<DateTime<Utc>>

The metadata for a file.

name: String

The metadata for a file.

original_filename: String

The metadata for a file.

owned_by_me: Option<bool>

The metadata for a file.

owners: Vec<User>

The metadata for a file.

parents: Vec<String>

The metadata for a file.

permission_ids: Vec<String>

The metadata for a file.

permissions: Vec<Permission>

The metadata for a file.

properties: String

The metadata for a file.

quota_bytes_used: i64

The metadata for a file.

resource_key: String

The metadata for a file.

shared: Option<bool>

The metadata for a file.

shared_with_me_time: Option<DateTime<Utc>>

The metadata for a file.

sharing_user: Option<User>

The metadata for a file.

shortcut_details: Option<ShortcutDetails>

The metadata for a file.

size: i64

The metadata for a file.

spaces: Vec<String>

The metadata for a file.

starred: Option<bool>

The metadata for a file.

team_drive_id: String

The metadata for a file.

thumbnail_link: String

The metadata for a file.

thumbnail_version: i64

The metadata for a file.

trashed: Option<bool>

The metadata for a file.

trashed_time: Option<DateTime<Utc>>

The metadata for a file.

trashing_user: Option<User>

The metadata for a file.

version: i64

The metadata for a file.

video_media_metadata: Option<VideoMediaMetadata>

The metadata for a file.

viewed_by_me: Option<bool>

The metadata for a file.

viewed_by_me_time: Option<DateTime<Utc>>

The metadata for a file.

viewers_can_copy_content: Option<bool>

The metadata for a file.

web_content_link: String

The metadata for a file.

web_view_link: String

The metadata for a file.

writers_can_share: Option<bool>

The metadata for a file.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more