pub struct AccessLevel {
pub basic: Option<BasicLevel>,
pub custom: Option<CustomLevel>,
pub description: Option<String>,
pub name: Option<String>,
pub title: Option<String>,
}
Expand description
An AccessLevel
is a label that can be applied to requests to Google Cloud services, along with a list of requirements necessary for the label to be applied.
§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).
- access levels create access policies (request)
- access levels get access policies (response)
- access levels patch access policies (request)
Fields§
§basic: Option<BasicLevel>
A BasicLevel
composed of Conditions
.
custom: Option<CustomLevel>
A CustomLevel
written in the Common Expression Language.
description: Option<String>
Description of the AccessLevel
and its use. Does not affect behavior.
name: Option<String>
Identifier. Resource name for the AccessLevel
. Format: accessPolicies/{access_policy}/accessLevels/{access_level}
. The access_level
component must begin with a letter, followed by alphanumeric characters or _
. Its maximum length is 50 characters. After you create an AccessLevel
, you cannot change its name
.
title: Option<String>
Human readable title. Must be unique within the Policy.
Trait Implementations§
Source§impl Clone for AccessLevel
impl Clone for AccessLevel
Source§fn clone(&self) -> AccessLevel
fn clone(&self) -> AccessLevel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AccessLevel
impl Debug for AccessLevel
Source§impl Default for AccessLevel
impl Default for AccessLevel
Source§fn default() -> AccessLevel
fn default() -> AccessLevel
Source§impl<'de> Deserialize<'de> for AccessLevel
impl<'de> Deserialize<'de> for AccessLevel
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>,
Source§impl Serialize for AccessLevel
impl Serialize for AccessLevel
impl RequestValue for AccessLevel
impl ResponseResult for AccessLevel
Auto Trait Implementations§
impl Freeze for AccessLevel
impl RefUnwindSafe for AccessLevel
impl Send for AccessLevel
impl Sync for AccessLevel
impl Unpin for AccessLevel
impl UnwindSafe for AccessLevel
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