pub struct DriveCapabilities {
Show 20 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_change_sharing_folders_requires_organizer_permission_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_reset_drive_restrictions: Option<bool>, pub can_share: Option<bool>, pub can_trash_children: Option<bool>,
}
Expand description

Output only. Capabilities the current user has on this shared drive.

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

Fields§

§can_add_children: Option<bool>

Output only. Whether the current user can add children to folders in this shared drive.

§can_change_copy_requires_writer_permission_restriction: Option<bool>

Output only. Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive.

§can_change_domain_users_only_restriction: Option<bool>

Output only. Whether the current user can change the domainUsersOnly restriction of this shared drive.

§can_change_drive_background: Option<bool>

Output only. Whether the current user can change the background of this shared drive.

§can_change_drive_members_only_restriction: Option<bool>

Output only. Whether the current user can change the driveMembersOnly restriction of this shared drive.

§can_change_sharing_folders_requires_organizer_permission_restriction: Option<bool>

Output only. Whether the current user can change the sharingFoldersRequiresOrganizerPermission restriction of this shared drive.

§can_comment: Option<bool>

Output only. Whether the current user can comment on files in this shared drive.

§can_copy: Option<bool>

Output only. Whether the current user can copy files in this shared drive.

§can_delete_children: Option<bool>

Output only. Whether the current user can delete children from folders in this shared drive.

§can_delete_drive: Option<bool>

Output only. Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.

§can_download: Option<bool>

Output only. Whether the current user can download files in this shared drive.

§can_edit: Option<bool>

Output only. Whether the current user can edit files in this shared drive

§can_list_children: Option<bool>

Output only. Whether the current user can list the children of folders in this shared drive.

§can_manage_members: Option<bool>

Output only. Whether the current user can add members to this shared drive or remove them or change their role.

§can_read_revisions: Option<bool>

Output only. Whether the current user can read the revisions resource of files in this shared drive.

§can_rename: Option<bool>

Output only. Whether the current user can rename files or folders in this shared drive.

§can_rename_drive: Option<bool>

Output only. Whether the current user can rename this shared drive.

§can_reset_drive_restrictions: Option<bool>

Output only. Whether the current user can reset the shared drive restrictions to defaults.

§can_share: Option<bool>

Output only. Whether the current user can share files or folders in this shared drive.

§can_trash_children: Option<bool>

Output only. Whether the current user can trash children from folders in this shared drive.

Trait Implementations§

source§

impl Clone for DriveCapabilities

source§

fn clone(&self) -> DriveCapabilities

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DriveCapabilities

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for DriveCapabilities

source§

fn default() -> DriveCapabilities

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

impl<'de> Deserialize<'de> for DriveCapabilities

source§

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

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for DriveCapabilities

source§

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

Serialize this value into the given Serde serializer. Read more
source§

impl NestedType for DriveCapabilities

source§

impl Part for DriveCapabilities

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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