Struct google_drive3::Permission
[−]
[src]
pub struct Permission { pub domain: Option<String>, pub display_name: Option<String>, pub allow_file_discovery: Option<bool>, pub kind: Option<String>, pub email_address: Option<String>, pub photo_link: Option<String>, pub role: Option<String>, pub expiration_time: 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.
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string "drive#permission".
email_address: Option<String>
The email address of the user or group to which this permission refers.
photo_link: Option<String>
A link to the user's profile photo, if available.
role: Option<String>
The role granted by this permission. Valid values are: - owner - writer - commenter - reader
expiration_time: Option<String>
The time at which this permission will expire (RFC 3339 date-time).
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 Debug for Permission
[src]
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
impl Default for Permission
[src]
fn default() -> Permission
Returns the "default value" for a type. Read more