pub struct Role {
pub deleted: Option<bool>,
pub description: Option<String>,
pub etag: Option<Vec<u8>>,
pub included_permissions: Option<Vec<String>>,
pub name: Option<String>,
pub stage: Option<String>,
pub title: Option<String>,
}
Expand description
A role in the Identity and Access Management API.
§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).
- roles create organizations (response)
- roles delete organizations (response)
- roles get organizations (response)
- roles patch organizations (request|response)
- roles undelete organizations (response)
- roles create projects (response)
- roles delete projects (response)
- roles get projects (response)
- roles patch projects (request|response)
- roles undelete projects (response)
- get roles (response)
- list roles (none)
- query grantable roles roles (none)
Fields§
§deleted: Option<bool>
The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.
description: Option<String>
Optional. A human-readable description for the role.
etag: Option<Vec<u8>>
Used to perform a consistent read-modify-write.
included_permissions: Option<Vec<String>>
The names of the permissions this role grants when bound in an IAM policy.
name: Option<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. For example, roles/logging.viewer
for predefined roles, organizations/{ORGANIZATION_ID}/roles/myRole
for organization-level custom roles, and projects/{PROJECT_ID}/roles/myRole
for project-level custom roles.
stage: Option<String>
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.
title: Option<String>
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Role
impl Resource for Role
impl ResponseResult for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more