Enum google_api_proto::google::cloud::policysimulator::v1::access_state_diff::AccessChangeType
source · #[repr(i32)]pub enum AccessChangeType {
Unspecified = 0,
NoChange = 1,
UnknownChange = 2,
AccessRevoked = 3,
AccessGained = 4,
AccessMaybeRevoked = 5,
AccessMaybeGained = 6,
}
Expand description
How the principal’s access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.
Variants§
Unspecified = 0
Default value. This value is unused.
NoChange = 1
The principal’s access did not change. This includes the case where both baseline and simulated are UNKNOWN, but the unknown information is equivalent.
UnknownChange = 2
The principal’s access under both the current policies and the proposed
policies is UNKNOWN
, but the unknown information differs between them.
AccessRevoked = 3
The principal had access under the current policies (GRANTED
), but will
no longer have access after the proposed changes (NOT_GRANTED
).
AccessGained = 4
The principal did not have access under the current policies
(NOT_GRANTED
), but will have access after the proposed changes
(GRANTED
).
AccessMaybeRevoked = 5
This result can occur for the following reasons:
-
The principal had access under the current policies (
GRANTED
), but their access after the proposed changes isUNKNOWN
. -
The principal’s access under the current policies is
UNKNOWN
, but they will not have access after the proposed changes (NOT_GRANTED
).
AccessMaybeGained = 6
This result can occur for the following reasons:
-
The principal did not have access under the current policies (
NOT_GRANTED
), but their access after the proposed changes isUNKNOWN
. -
The principal’s access under the current policies is
UNKNOWN
, but they will have access after the proposed changes (GRANTED
).
Implementations§
source§impl AccessChangeType
impl AccessChangeType
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 AccessChangeType
impl Clone for AccessChangeType
source§fn clone(&self) -> AccessChangeType
fn clone(&self) -> AccessChangeType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessChangeType
impl Debug for AccessChangeType
source§impl Default for AccessChangeType
impl Default for AccessChangeType
source§fn default() -> AccessChangeType
fn default() -> AccessChangeType
source§impl From<AccessChangeType> for i32
impl From<AccessChangeType> for i32
source§fn from(value: AccessChangeType) -> i32
fn from(value: AccessChangeType) -> i32
source§impl Hash for AccessChangeType
impl Hash for AccessChangeType
source§impl Ord for AccessChangeType
impl Ord for AccessChangeType
source§fn cmp(&self, other: &AccessChangeType) -> Ordering
fn cmp(&self, other: &AccessChangeType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AccessChangeType
impl PartialEq for AccessChangeType
source§fn eq(&self, other: &AccessChangeType) -> bool
fn eq(&self, other: &AccessChangeType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AccessChangeType
impl PartialOrd for AccessChangeType
source§fn partial_cmp(&self, other: &AccessChangeType) -> Option<Ordering>
fn partial_cmp(&self, other: &AccessChangeType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for AccessChangeType
impl TryFrom<i32> for AccessChangeType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<AccessChangeType, DecodeError>
fn try_from(value: i32) -> Result<AccessChangeType, DecodeError>
impl Copy for AccessChangeType
impl Eq for AccessChangeType
impl StructuralPartialEq for AccessChangeType
Auto Trait Implementations§
impl Freeze for AccessChangeType
impl RefUnwindSafe for AccessChangeType
impl Send for AccessChangeType
impl Sync for AccessChangeType
impl Unpin for AccessChangeType
impl UnwindSafe for AccessChangeType
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<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
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
§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
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>
T
in a tonic::Request