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.
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§
Source§impl Clone for FileCapabilities
impl Clone for FileCapabilities
Source§fn clone(&self) -> FileCapabilities
fn clone(&self) -> FileCapabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FileCapabilities
impl Debug for FileCapabilities
Source§impl<'de> Deserialize<'de> for FileCapabilities
impl<'de> Deserialize<'de> for FileCapabilities
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>,
Source§impl JsonSchema for FileCapabilities
impl JsonSchema for FileCapabilities
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for FileCapabilities
impl PartialEq for FileCapabilities
Source§impl Serialize for FileCapabilities
impl Serialize for FileCapabilities
impl StructuralPartialEq for FileCapabilities
Auto Trait Implementations§
impl Freeze for FileCapabilities
impl RefUnwindSafe for FileCapabilities
impl Send for FileCapabilities
impl Sync for FileCapabilities
impl Unpin for FileCapabilities
impl UnwindSafe for FileCapabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more