Struct google_drive3::Permission [−][src]
pub struct Permission { pub domain: Option<String>, pub display_name: Option<String>, pub allow_file_discovery: Option<bool>, pub deleted: Option<bool>, pub kind: Option<String>, pub team_drive_permission_details: Option<Vec<PermissionTeamDrivePermissionDetails>>, pub photo_link: Option<String>, pub email_address: Option<String>, pub expiration_time: Option<String>, pub role: Option<String>, pub type_: Option<String>, pub id: Option<String>, }
A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- create permissions (request|response)
- list permissions (none)
- get permissions (response)
- delete permissions (none)
- update permissions (request|response)
Fields
domain: Option<String>
The domain to which this permission refers.
display_name: Option<String>
A displayable name for users, groups or domains.
allow_file_discovery: Option<bool>
Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
deleted: Option<bool>
Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string "drive#permission".
team_drive_permission_details: Option<Vec<PermissionTeamDrivePermissionDetails>>
Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
photo_link: Option<String>
A link to the user's profile photo, if available.
email_address: Option<String>
The email address of the user or group to which this permission refers.
expiration_time: Option<String>
The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
- They can only be set on user and group permissions
- The time must be in the future
- The time cannot be more than a year in the future
role: Option<String>
The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
- owner
- organizer
- fileOrganizer
- writer
- commenter
- reader
type_: Option<String>
The type of the grantee. Valid values are:
- user
- group
- domain
- anyone
id: Option<String>
The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId.
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 RequestValue for Permission
[src]
impl RequestValue for Permission
impl Resource for Permission
[src]
impl Resource for Permission
impl ResponseResult for Permission
[src]
impl ResponseResult for Permission
Auto Trait Implementations
impl Send for Permission
impl Send for Permission
impl Sync for Permission
impl Sync for Permission