Struct google_driveactivity2::api::DriveItem
source · pub struct DriveItem {
pub drive_file: Option<DriveFile>,
pub drive_folder: Option<DriveFolder>,
pub file: Option<File>,
pub folder: Option<Folder>,
pub mime_type: Option<String>,
pub name: Option<String>,
pub owner: Option<Owner>,
pub title: Option<String>,
}
Expand description
A Drive item, such as a file or folder.
This type is not used in any activity, and only used as part of another schema.
Fields§
§drive_file: Option<DriveFile>
The Drive item is a file.
drive_folder: Option<DriveFolder>
The Drive item is a folder. Includes information about the type of folder.
file: Option<File>
This field is deprecated; please use the driveFile
field instead.
folder: Option<Folder>
This field is deprecated; please use the driveFolder
field instead.
mime_type: Option<String>
The MIME type of the Drive item. See https://developers.google.com/drive/v3/web/mime-types.
name: Option<String>
The target Drive item. The format is items/ITEM_ID
.
owner: Option<Owner>
Information about the owner of this Drive item.
title: Option<String>
The title of the Drive item.
Trait Implementations§
source§impl<'de> Deserialize<'de> for DriveItem
impl<'de> Deserialize<'de> for DriveItem
source§fn 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
impl Part for DriveItem
Auto Trait Implementations§
impl RefUnwindSafe for DriveItem
impl Send for DriveItem
impl Sync for DriveItem
impl Unpin for DriveItem
impl UnwindSafe for DriveItem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more