Enum google_api_proto::google::cloud::policytroubleshooter::iam::v3::troubleshoot_iam_policy_response::OverallAccessState
source · #[repr(i32)]pub enum OverallAccessState {
Unspecified = 0,
CanAccess = 1,
CannotAccess = 2,
UnknownInfo = 3,
UnknownConditional = 4,
}
Expand description
Whether the principal has the permission on the resource.
Variants§
Unspecified = 0
Not specified.
CanAccess = 1
The principal has the permission.
CannotAccess = 2
The principal doesn’t have the permission.
UnknownInfo = 3
The principal might have the permission, but the sender can’t access all of the information needed to fully evaluate the principal’s access.
UnknownConditional = 4
The principal might have the permission, but Policy Troubleshooter can’t fully evaluate the principal’s access because the sender didn’t provide the required context to evaluate the condition.
Implementations§
source§impl OverallAccessState
impl OverallAccessState
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 OverallAccessState
impl Clone for OverallAccessState
source§fn clone(&self) -> OverallAccessState
fn clone(&self) -> OverallAccessState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OverallAccessState
impl Debug for OverallAccessState
source§impl Default for OverallAccessState
impl Default for OverallAccessState
source§fn default() -> OverallAccessState
fn default() -> OverallAccessState
source§impl From<OverallAccessState> for i32
impl From<OverallAccessState> for i32
source§fn from(value: OverallAccessState) -> i32
fn from(value: OverallAccessState) -> i32
source§impl Hash for OverallAccessState
impl Hash for OverallAccessState
source§impl Ord for OverallAccessState
impl Ord for OverallAccessState
source§fn cmp(&self, other: &OverallAccessState) -> Ordering
fn cmp(&self, other: &OverallAccessState) -> 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 OverallAccessState
impl PartialEq for OverallAccessState
source§fn eq(&self, other: &OverallAccessState) -> bool
fn eq(&self, other: &OverallAccessState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OverallAccessState
impl PartialOrd for OverallAccessState
source§fn partial_cmp(&self, other: &OverallAccessState) -> Option<Ordering>
fn partial_cmp(&self, other: &OverallAccessState) -> 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 OverallAccessState
impl TryFrom<i32> for OverallAccessState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<OverallAccessState, UnknownEnumValue>
fn try_from(value: i32) -> Result<OverallAccessState, UnknownEnumValue>
impl Copy for OverallAccessState
impl Eq for OverallAccessState
impl StructuralPartialEq for OverallAccessState
Auto Trait Implementations§
impl Freeze for OverallAccessState
impl RefUnwindSafe for OverallAccessState
impl Send for OverallAccessState
impl Sync for OverallAccessState
impl Unpin for OverallAccessState
impl UnwindSafe for OverallAccessState
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