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]
fn default() -> Permission
Returns the "default value" for a type. Read more
impl Clone for Permission
[src]
fn clone(&self) -> Permission
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more