pub struct Capabilities {Show 18 fields
pub can_add_children: Option<bool>,
pub can_change_copy_requires_writer_permission_restriction: Option<bool>,
pub can_change_domain_users_only_restriction: Option<bool>,
pub can_change_drive_background: Option<bool>,
pub can_change_drive_members_only_restriction: Option<bool>,
pub can_comment: Option<bool>,
pub can_copy: Option<bool>,
pub can_delete_children: Option<bool>,
pub can_delete_drive: Option<bool>,
pub can_download: Option<bool>,
pub can_edit: Option<bool>,
pub can_list_children: Option<bool>,
pub can_manage_members: Option<bool>,
pub can_read_revisions: Option<bool>,
pub can_rename: Option<bool>,
pub can_rename_drive: Option<bool>,
pub can_share: Option<bool>,
pub can_trash_children: Option<bool>,
}Expand description
Capabilities the current user has on this shared drive.
Fields§
§can_add_children: Option<bool>Capabilities the current user has on this shared drive.
can_change_copy_requires_writer_permission_restriction: Option<bool>Capabilities the current user has on this shared drive.
can_change_domain_users_only_restriction: Option<bool>Capabilities the current user has on this shared drive.
can_change_drive_background: Option<bool>Capabilities the current user has on this shared drive.
can_change_drive_members_only_restriction: Option<bool>Capabilities the current user has on this shared drive.
can_comment: Option<bool>Capabilities the current user has on this shared drive.
can_copy: Option<bool>Capabilities the current user has on this shared drive.
can_delete_children: Option<bool>Capabilities the current user has on this shared drive.
can_delete_drive: Option<bool>Capabilities the current user has on this shared drive.
can_download: Option<bool>Capabilities the current user has on this shared drive.
can_edit: Option<bool>Capabilities the current user has on this shared drive.
can_list_children: Option<bool>Capabilities the current user has on this shared drive.
can_manage_members: Option<bool>Capabilities the current user has on this shared drive.
can_read_revisions: Option<bool>Capabilities the current user has on this shared drive.
can_rename: Option<bool>Capabilities the current user has on this shared drive.
can_rename_drive: Option<bool>Capabilities the current user has on this shared drive.
Capabilities the current user has on this shared drive.
can_trash_children: Option<bool>Capabilities the current user has on this shared drive.
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Capabilities
impl Debug for Capabilities
Source§impl<'de> Deserialize<'de> for Capabilities
impl<'de> Deserialize<'de> for Capabilities
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 Capabilities
impl JsonSchema for Capabilities
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 Capabilities
impl PartialEq for Capabilities
Source§impl Serialize for Capabilities
impl Serialize for Capabilities
impl StructuralPartialEq for Capabilities
Auto Trait Implementations§
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
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