Struct google_appsactivity1::Permission [−][src]
pub struct Permission { pub with_link: Option<bool>, pub permission_id: Option<String>, pub role: Option<String>, pub name: Option<String>, pub type_: Option<String>, pub user: Option<User>, }
Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.
This type is not used in any activity, and only used as part of another schema.
Fields
with_link: Option<bool>
Whether the permission requires a link to the file.
permission_id: Option<String>
The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.
role: Option<String>
Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.
name: Option<String>
The name of the user or group the permission applies to.
type_: Option<String>
Indicates how widely permissions are granted.
user: Option<User>
The user's information if the type is USER.
Trait Implementations
impl Default for Permission
[src]
impl Default for Permission
fn default() -> Permission
[src]
fn default() -> Permission
Returns the "default value" for a type. Read more
impl Clone for Permission
[src]
impl Clone for Permission
fn clone(&self) -> Permission
[src]
fn clone(&self) -> Permission
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Permission
[src]
impl Debug for Permission
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for Permission
[src]
impl Part for Permission
Auto Trait Implementations
impl Send for Permission
impl Send for Permission
impl Sync for Permission
impl Sync for Permission