Struct gapi_grpc::google::iam::admin::v1::Role[][src]

pub struct Role {
    pub name: String,
    pub title: String,
    pub description: String,
    pub included_permissions: Vec<String>,
    pub stage: i32,
    pub etag: Vec<u8>,
    pub deleted: bool,
}

A role in the Identity and Access Management API.

Fields

name: String

The name of the role.

When Role is used in CreateRole, the role name must not be set.

When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.

title: String

Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.

description: String

Optional. A human-readable description for the role.

included_permissions: Vec<String>

The names of the permissions this role grants when bound in an IAM policy.

stage: i32

The current launch stage of the role. If the ALPHA launch stage has been selected for a role, the stage field will not be included in the returned definition for the role.

etag: Vec<u8>

Used to perform a consistent read-modify-write.

deleted: bool

The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.

Implementations

impl Role[src]

pub fn stage(&self) -> RoleLaunchStage[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: RoleLaunchStage)[src]

Sets stage to the provided enum value.

Trait Implementations

impl Clone for Role[src]

impl Debug for Role[src]

impl Default for Role[src]

impl Message for Role[src]

impl PartialEq<Role> for Role[src]

impl StructuralPartialEq for Role[src]

Auto Trait Implementations

impl RefUnwindSafe for Role

impl Send for Role

impl Sync for Role

impl Unpin for Role

impl UnwindSafe for Role

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]