Enum google_api_proto::google::cloud::compute::v1::authorization_logging_options::PermissionType
source · #[repr(i32)]pub enum PermissionType {
UndefinedPermissionType = 0,
AdminRead = 128_951_462,
AdminWrite = 244_412_079,
DataRead = 305_224_971,
DataWrite = 340_181_738,
Unspecified = 440_313_346,
}
Expand description
This is deprecated and has no effect. Do not use.
Variants§
UndefinedPermissionType = 0
A value indicating that the enum field is not set.
AdminRead = 128_951_462
This is deprecated and has no effect. Do not use.
AdminWrite = 244_412_079
This is deprecated and has no effect. Do not use.
DataRead = 305_224_971
This is deprecated and has no effect. Do not use.
DataWrite = 340_181_738
This is deprecated and has no effect. Do not use.
Unspecified = 440_313_346
This is deprecated and has no effect. Do not use.
Implementations§
source§impl PermissionType
impl PermissionType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PermissionType
impl Clone for PermissionType
source§fn clone(&self) -> PermissionType
fn clone(&self) -> PermissionType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PermissionType
impl Debug for PermissionType
source§impl Default for PermissionType
impl Default for PermissionType
source§fn default() -> PermissionType
fn default() -> PermissionType
Returns the “default value” for a type. Read more
source§impl From<PermissionType> for i32
impl From<PermissionType> for i32
source§fn from(value: PermissionType) -> i32
fn from(value: PermissionType) -> i32
Converts to this type from the input type.
source§impl Hash for PermissionType
impl Hash for PermissionType
source§impl Ord for PermissionType
impl Ord for PermissionType
source§fn cmp(&self, other: &PermissionType) -> Ordering
fn cmp(&self, other: &PermissionType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PermissionType
impl PartialEq for PermissionType
source§fn eq(&self, other: &PermissionType) -> bool
fn eq(&self, other: &PermissionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PermissionType
impl PartialOrd for PermissionType
source§fn partial_cmp(&self, other: &PermissionType) -> Option<Ordering>
fn partial_cmp(&self, other: &PermissionType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PermissionType
impl TryFrom<i32> for PermissionType
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<PermissionType, DecodeError>
fn try_from(value: i32) -> Result<PermissionType, DecodeError>
Performs the conversion.
impl Copy for PermissionType
impl Eq for PermissionType
impl StructuralPartialEq for PermissionType
Auto Trait Implementations§
impl Freeze for PermissionType
impl RefUnwindSafe for PermissionType
impl Send for PermissionType
impl Sync for PermissionType
impl Unpin for PermissionType
impl UnwindSafe for PermissionType
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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>
Wrap the input message
T
in a tonic::Request