Struct gapi_grpc::google::apps::drive::activity::v2::Permission[][src]

pub struct Permission {
    pub role: i32,
    pub allow_discovery: bool,
    pub scope: Option<Scope>,
}

The permission setting of an object.

Fields

role: i32

Indicates the Google Drive permissions role. The role determines a user’s ability to read, write, and comment on items.

allow_discovery: bool

If true, the item can be discovered (e.g. in the user’s “Shared with me” collection) without needing a link to the item.

scope: Option<Scope>

The entity granted the role.

Implementations

impl Permission[src]

pub fn role(&self) -> Role[src]

Returns the enum value of role, or the default if the field is set to an invalid enum value.

pub fn set_role(&mut self, value: Role)[src]

Sets role to the provided enum value.

Trait Implementations

impl Clone for Permission[src]

impl Debug for Permission[src]

impl Default for Permission[src]

impl Message for Permission[src]

impl PartialEq<Permission> for Permission[src]

impl StructuralPartialEq for Permission[src]

Auto Trait Implementations

impl RefUnwindSafe for Permission

impl Send for Permission

impl Sync for Permission

impl Unpin for Permission

impl UnwindSafe for Permission

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]