pub struct PermissionDetails {
pub permission_type: Option<String>,
pub inherited_from: Option<String>,
pub role: Option<String>,
pub inherited: Option<bool>,
}Expand description
Details of whether the permissions on this shared drive item are inherited or directly on this item.
This is an output-only field which is present only for shared drive items.
Fields§
§permission_type: Option<String>The permission type for this user.
While new values may be added in future, the following are currently possible:
filemember
inherited_from: Option<String>The ID of the item from which this permission is inherited.
role: Option<String>The primary role for this user.
While new values may be added in the future, the following are currently possible:
organizerfileOrganizerwritercommenterreader
inherited: Option<bool>Whether this permission is inherited.
Implementations§
Trait Implementations§
Source§impl Clone for PermissionDetails
impl Clone for PermissionDetails
Source§fn clone(&self) -> PermissionDetails
fn clone(&self) -> PermissionDetails
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermissionDetails
impl Debug for PermissionDetails
Source§impl Default for PermissionDetails
impl Default for PermissionDetails
Source§fn default() -> PermissionDetails
fn default() -> PermissionDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionDetails
impl<'de> Deserialize<'de> for PermissionDetails
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PermissionDetails
impl Display for PermissionDetails
Source§impl PartialEq for PermissionDetails
impl PartialEq for PermissionDetails
Source§impl Serialize for PermissionDetails
impl Serialize for PermissionDetails
impl Eq for PermissionDetails
impl StructuralPartialEq for PermissionDetails
Auto Trait Implementations§
impl Freeze for PermissionDetails
impl RefUnwindSafe for PermissionDetails
impl Send for PermissionDetails
impl Sync for PermissionDetails
impl Unpin for PermissionDetails
impl UnwindSafe for PermissionDetails
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.