Struct google_drive3_fork::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).

Fields

The domain to which this permission refers.

A displayable name for users, groups or domains.

Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.

Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.

Identifies what kind of resource this is. Value: the fixed string "drive#permission".

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.

A link to the user's profile photo, if available.

The email address of the user or group to which this permission refers.

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

The role granted by this permission. While new values may be supported in the future, the following are currently allowed:

  • organizer
  • owner
  • writer
  • commenter
  • reader

The type of the grantee. Valid values are:

  • user
  • group
  • domain
  • anyone

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]

Returns the "default value" for a type. Read more

impl Clone for Permission
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Permission
[src]

Formats the value using the given formatter. Read more

impl RequestValue for Permission
[src]

impl Resource for Permission
[src]

impl ResponseResult for Permission
[src]

Auto Trait Implementations

impl Send for Permission

impl Sync for Permission