Struct google_driveactivity2::api::Permission
source · pub struct Permission {
pub allow_discovery: Option<bool>,
pub anyone: Option<Anyone>,
pub domain: Option<Domain>,
pub group: Option<Group>,
pub role: Option<String>,
pub user: Option<User>,
}
Expand description
The permission setting of an object.
This type is not used in any activity, and only used as part of another schema.
Fields§
§allow_discovery: Option<bool>
If true, the item can be discovered (e.g. in the user’s “Shared with me” collection) without needing a link to the item.
anyone: Option<Anyone>
If set, this permission applies to anyone, even logged out users.
domain: Option<Domain>
The domain to whom this permission applies.
group: Option<Group>
The group to whom this permission applies.
role: Option<String>
Indicates the Google Drive permissions role. The role determines a user’s ability to read, write, and comment on items.
user: Option<User>
The user to whom this permission applies.
Trait Implementations§
source§impl Clone for Permission
impl Clone for Permission
source§fn clone(&self) -> Permission
fn clone(&self) -> Permission
Returns a copy 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 Permission
impl Debug for Permission
source§impl Default for Permission
impl Default for Permission
source§fn default() -> Permission
fn default() -> Permission
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Permission
impl<'de> Deserialize<'de> for Permission
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 Serialize for Permission
impl Serialize for Permission
impl Part for Permission
Auto Trait Implementations§
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
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