Struct google_drive::FileCapabilities[][src]

pub struct FileCapabilities {
Show fields pub can_move_item_out_of_drive: Option<bool>, pub can_untrash: Option<bool>, pub can_copy: Option<bool>, pub can_move_item_within_drive: Option<bool>, pub can_read_revisions: Option<bool>, pub can_move_item_into_team_drive: Option<bool>, pub can_move_item_within_team_drive: Option<bool>, pub can_move_item_out_of_team_drive: Option<bool>, pub can_delete_children: Option<bool>, pub can_change_copy_requires_writer_permission: Option<bool>, pub can_download: Option<bool>, pub can_edit: Option<bool>, pub can_move_children_within_team_drive: Option<bool>, pub can_comment: Option<bool>, pub can_list_children: Option<bool>, pub can_rename: Option<bool>, pub can_trash: Option<bool>, pub can_delete: Option<bool>, pub can_read_drive: Option<bool>, pub can_move_team_drive_item: Option<bool>, pub can_add_children: Option<bool>, pub can_share: Option<bool>, pub can_trash_children: Option<bool>, pub can_change_viewers_can_copy_content: Option<bool>, pub can_move_children_out_of_drive: Option<bool>, pub can_move_children_out_of_team_drive: Option<bool>, pub can_remove_children: Option<bool>, pub can_read_team_drive: Option<bool>, pub can_move_children_within_drive: Option<bool>,
}

Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

This type is not used in any activity, and only used as part of another schema.

Fields

can_move_item_out_of_drive: Option<bool>

Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.

can_untrash: Option<bool>

Whether the current user can restore this file from trash.

can_copy: Option<bool>

Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.

can_move_item_within_drive: Option<bool>

Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.

can_read_revisions: Option<bool>

Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.

can_move_item_into_team_drive: Option<bool>

Deprecated - use canMoveItemOutOfDrive instead.

can_move_item_within_team_drive: Option<bool>

Deprecated - use canMoveItemWithinDrive instead.

can_move_item_out_of_team_drive: Option<bool>

Deprecated - use canMoveItemOutOfDrive instead.

can_delete_children: Option<bool>

Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.

can_change_copy_requires_writer_permission: Option<bool>

Whether the current user can change the copyRequiresWriterPermission restriction of this file.

can_download: Option<bool>

Whether the current user can download this file.

can_edit: Option<bool>

Whether the current user can edit this file.

can_move_children_within_team_drive: Option<bool>

Deprecated - use canMoveChildrenWithinDrive instead.

can_comment: Option<bool>

Whether the current user can comment on this file.

can_list_children: Option<bool>

Whether the current user can list the children of this folder. This is always false when the item is not a folder.

can_rename: Option<bool>

Whether the current user can rename this file.

can_trash: Option<bool>

Whether the current user can move this file to trash.

can_delete: Option<bool>

Whether the current user can delete this file.

can_read_drive: Option<bool>

Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.

can_move_team_drive_item: Option<bool>

Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.

can_add_children: Option<bool>

Whether the current user can add children to this folder. This is always false when the item is not a folder.

can_share: Option<bool>

Whether the current user can modify the sharing settings for this file.

can_trash_children: Option<bool>

Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.

can_change_viewers_can_copy_content: Option<bool>

Deprecated

can_move_children_out_of_drive: Option<bool>

Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.

can_move_children_out_of_team_drive: Option<bool>

Deprecated - use canMoveChildrenOutOfDrive instead.

can_remove_children: Option<bool>

Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.

can_read_team_drive: Option<bool>

Deprecated - use canReadDrive instead.

can_move_children_within_drive: Option<bool>

Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.

Trait Implementations

impl Clone for FileCapabilities[src]

fn clone(&self) -> FileCapabilities[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for FileCapabilities[src]

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

Formats the value using the given formatter. Read more

impl Default for FileCapabilities[src]

fn default() -> FileCapabilities[src]

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

impl<'de> Deserialize<'de> for FileCapabilities[src]

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for FileCapabilities[src]

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

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

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

fn in_current_span(self) -> Instrumented<Self>[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]