Struct google_api_proto::google::iam::admin::v1::Permission
source · 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,
pub api_disabled: bool,
pub primary_permission: String,
}
Expand description
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
stage: i32
The current launch stage of the permission.
custom_roles_support_level: i32
The current custom role support level.
api_disabled: bool
The service API associated with the permission is not enabled.
primary_permission: String
The preferred name for this permission. If present, then this permission is an alias of, and equivalent to, the listed primary_permission.
Implementations§
source§impl Permission
impl Permission
sourcepub fn stage(&self) -> PermissionLaunchStage
pub fn stage(&self) -> PermissionLaunchStage
Returns the enum value of stage
, or the default if the field is set to an invalid enum value.
sourcepub fn set_stage(&mut self, value: PermissionLaunchStage)
pub fn set_stage(&mut self, value: PermissionLaunchStage)
Sets stage
to the provided enum value.
sourcepub fn custom_roles_support_level(&self) -> CustomRolesSupportLevel
pub fn custom_roles_support_level(&self) -> CustomRolesSupportLevel
Returns the enum value of custom_roles_support_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_custom_roles_support_level(&mut self, value: CustomRolesSupportLevel)
pub fn set_custom_roles_support_level(&mut self, value: CustomRolesSupportLevel)
Sets custom_roles_support_level
to the provided enum value.
Trait Implementations§
source§impl Clone for Permission
impl Clone for Permission
source§fn clone(&self) -> Permission
fn clone(&self) -> Permission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Permission
impl Debug for Permission
source§impl Default for Permission
impl Default for Permission
source§impl Message for Permission
impl Message for Permission
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Permission
impl PartialEq for Permission
source§fn eq(&self, other: &Permission) -> bool
fn eq(&self, other: &Permission) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Permission
Auto Trait Implementations§
impl Freeze for Permission
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request