Struct google_drive3::FileCapabilities [−][src]
pub struct FileCapabilities { pub can_read_revisions: Option<bool>, pub can_untrash: Option<bool>, pub can_copy: Option<bool>, pub can_download: 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_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_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_change_copy_requires_writer_permission: 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_edit: 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_read_revisions: Option<bool>
Whether the current user can read the revisions resource of this file. For a Team 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_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 a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
can_download: Option<bool>
Whether the current user can download this file.
can_move_item_into_team_drive: Option<bool>
Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
can_move_item_within_team_drive: Option<bool>
Whether the current user can move this Team Drive item within this Team 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 Team Drive items.
can_move_item_out_of_team_drive: Option<bool>
Whether the current user can move this Team Drive item outside of this Team 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. Only populated for Team Drive items.
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 Team Drive items.
can_move_children_within_team_drive: Option<bool>
Whether the current user can move children of this folder within the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items.
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_move_team_drive_item: Option<bool>
Deprecated - use canMoveItemWithinTeamDrive or canMoveItemOutOfTeamDrive 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.
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 Team Drive items.
can_change_viewers_can_copy_content: Option<bool>
Deprecated
can_change_copy_requires_writer_permission: Option<bool>
Whether the current user can change the copyRequiresWriterPermission restriction of this file.
can_move_children_out_of_team_drive: Option<bool>
Whether the current user can move children of this folder outside of the Team Drive. This is false when the item is not a folder. Only populated for Team Drive items.
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 Team Drive items, use canDeleteChildren or canTrashChildren instead.
can_read_team_drive: Option<bool>
Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
can_edit: Option<bool>
Whether the current user can edit this file.
Trait Implementations
impl Default for FileCapabilities
[src]
impl Default for FileCapabilities
fn default() -> FileCapabilities
[src]
fn default() -> FileCapabilities
Returns the "default value" for a type. Read more
impl Clone for FileCapabilities
[src]
impl Clone for FileCapabilities
fn clone(&self) -> FileCapabilities
[src]
fn clone(&self) -> FileCapabilities
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for FileCapabilities
[src]
impl Debug for FileCapabilities
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl NestedType for FileCapabilities
[src]
impl NestedType for FileCapabilities
impl Part for FileCapabilities
[src]
impl Part for FileCapabilities
Auto Trait Implementations
impl Send for FileCapabilities
impl Send for FileCapabilities
impl Sync for FileCapabilities
impl Sync for FileCapabilities