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

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

Fields

can_add_children: Option<bool>

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

can_add_folder_from_another_drive: Option<bool>

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

can_add_my_drive_parent: Option<bool>

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

can_change_copy_requires_writer_permission: Option<bool>

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

can_change_security_update_enabled: Option<bool>

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

can_change_viewers_can_copy_content: Option<bool>

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

can_comment: Option<bool>

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

can_copy: Option<bool>

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

can_delete: Option<bool>

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

can_delete_children: Option<bool>

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

can_download: Option<bool>

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

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.

can_list_children: Option<bool>

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

can_modify_content: Option<bool>

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

can_modify_content_restriction: Option<bool>

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

can_move_children_out_of_drive: Option<bool>

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

can_move_children_out_of_team_drive: Option<bool>

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

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.

can_move_children_within_team_drive: Option<bool>

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

can_move_item_into_team_drive: Option<bool>

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

can_move_item_out_of_drive: Option<bool>

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

can_move_item_out_of_team_drive: Option<bool>

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

can_move_item_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.

can_move_item_within_team_drive: Option<bool>

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

can_move_team_drive_item: Option<bool>

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

can_read_drive: Option<bool>

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

can_read_revisions: Option<bool>

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

can_read_team_drive: Option<bool>

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

can_remove_children: Option<bool>

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

can_remove_my_drive_parent: Option<bool>

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

can_rename: Option<bool>

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

can_share: Option<bool>

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

can_trash: Option<bool>

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

can_trash_children: Option<bool>

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

can_untrash: Option<bool>

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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

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

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

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