[][src]Struct google_appsactivity1::Permission

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

impl Debug for Permission[src]

impl Default for Permission[src]

impl<'de> Deserialize<'de> for Permission[src]

impl Part for Permission[src]

impl Serialize for Permission[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any