Struct google_drive::types::File
source · [−]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.
The metadata for a file.
kind: String
The metadata for a file.
last_modifying_user: Option<User>
The metadata for a file.
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.
The metadata for a file.
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.
The metadata for a file.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for File
impl JsonSchema for File
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
impl StructuralPartialEq for File
Auto Trait Implementations
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more