#[non_exhaustive]pub struct AccessLevel {
pub name: String,
pub title: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub level: Option<Level>,
/* private fields */
}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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. Resource name for the Access Level. The short_name component
must begin with a letter and only include alphanumeric and ‘_’. Format:
accessPolicies/{access_policy}/accessLevels/{access_level}. The maximum
length of the access_level component is 50 characters.
title: StringHuman readable title. Must be unique within the Policy.
description: StringDescription of the AccessLevel and its use. Does not affect behavior.
create_time: Option<Timestamp>Output only. Time the AccessLevel was created in UTC.
update_time: Option<Timestamp>Output only. Time the AccessLevel was updated in UTC.
level: Option<Level>Required. Describes the necessary conditions for the level to apply.
Implementations§
Source§impl AccessLevel
impl AccessLevel
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_level<T: Into<Option<Level>>>(self, v: T) -> Self
pub fn set_level<T: Into<Option<Level>>>(self, v: T) -> Self
Sets the value of level.
Note that all the setters affecting level are mutually
exclusive.
Sourcepub fn basic(&self) -> Option<&Box<BasicLevel>>
pub fn basic(&self) -> Option<&Box<BasicLevel>>
The value of level
if it holds a Basic, None if the field is not set or
holds a different branch.
Sourcepub fn set_basic<T: Into<Box<BasicLevel>>>(self, v: T) -> Self
pub fn set_basic<T: Into<Box<BasicLevel>>>(self, v: T) -> Self
Sets the value of level
to hold a Basic.
Note that all the setters affecting level are
mutually exclusive.
Sourcepub fn custom(&self) -> Option<&Box<CustomLevel>>
pub fn custom(&self) -> Option<&Box<CustomLevel>>
The value of level
if it holds a Custom, None if the field is not set or
holds a different branch.
Sourcepub fn set_custom<T: Into<Box<CustomLevel>>>(self, v: T) -> Self
pub fn set_custom<T: Into<Box<CustomLevel>>>(self, v: T) -> Self
Sets the value of level
to hold a Custom.
Note that all the setters affecting level are
mutually exclusive.
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 more