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.

§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§

source§

impl Clone for File

source§

fn clone(&self) -> File

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for File

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for File

source§

fn default() -> File

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

impl<'de> Deserialize<'de> for File

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl JsonSchema for File

source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
source§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
source§

fn is_referenceable() -> bool

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

impl PartialEq<File> for File

source§

fn eq(&self, other: &File) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for File

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,