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).

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.

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

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

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

The role granted by this permission. Valid values are: - owner - writer - commenter - reader

The time at which this permission will expire (RFC 3339 date-time).

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 Debug for Permission
[src]

Formats the value using the given formatter.

impl Clone for Permission
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Permission
[src]

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

impl RequestValue for Permission
[src]

impl Resource for Permission
[src]

impl ResponseResult for Permission
[src]