[][src]Struct gcp_client::google::iam::admin::v1::Permission

pub struct Permission {
    pub name: String,
    pub title: String,
    pub description: String,
    pub only_in_predefined_roles: bool,
    pub stage: i32,
    pub custom_roles_support_level: i32,
}

A permission which can be included by a role.

Fields

name: String

The name of this Permission.

title: String

The title of this Permission.

description: String

A brief description of what this Permission is used for. This permission can ONLY be used in predefined roles.

only_in_predefined_roles: bool

This permission can ONLY be used in predefined roles.

stage: i32

The current launch stage of the permission.

custom_roles_support_level: i32

The current custom role support level.

Implementations

impl Permission[src]

pub fn stage(&self) -> PermissionLaunchStage[src]

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

pub fn set_stage(&mut self, value: PermissionLaunchStage)[src]

Sets stage to the provided enum value.

pub fn custom_roles_support_level(&self) -> CustomRolesSupportLevel[src]

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

pub fn set_custom_roles_support_level(&mut self, value: CustomRolesSupportLevel)[src]

Sets custom_roles_support_level 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

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, 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>, 

impl<T> WithSubscriber for T[src]