Enum google_api_proto::google::cloud::policytroubleshooter::iam::v3beta::MembershipMatchingState
source · #[repr(i32)]pub enum MembershipMatchingState {
Unspecified = 0,
MembershipMatched = 1,
MembershipNotMatched = 2,
MembershipUnknownInfo = 3,
MembershipUnknownUnsupported = 4,
}
Expand description
Whether the principal in the request matches the principal in the policy.
Variants§
Unspecified = 0
Not specified.
MembershipMatched = 1
The principal in the request matches the principal in the policy. The principal can be included directly or indirectly:
- A principal is included directly if that principal is listed in the role binding.
- A principal is included indirectly if that principal is in a Google group, Google Workspace account, or Cloud Identity domain that is listed in the policy.
MembershipNotMatched = 2
The principal in the request doesn’t match the principal in the policy.
MembershipUnknownInfo = 3
The principal in the policy is a group or domain, and the sender of the request doesn’t have permission to view whether the principal in the request is a member of the group or domain.
MembershipUnknownUnsupported = 4
The principal is an unsupported type.
Implementations§
source§impl MembershipMatchingState
impl MembershipMatchingState
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of MembershipMatchingState
.
sourcepub fn from_i32(value: i32) -> Option<MembershipMatchingState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<MembershipMatchingState>
Converts an i32
to a MembershipMatchingState
, or None
if value
is not a valid variant.
source§impl MembershipMatchingState
impl MembershipMatchingState
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 MembershipMatchingState
impl Clone for MembershipMatchingState
source§fn clone(&self) -> MembershipMatchingState
fn clone(&self) -> MembershipMatchingState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MembershipMatchingState
impl Debug for MembershipMatchingState
source§impl Default for MembershipMatchingState
impl Default for MembershipMatchingState
source§fn default() -> MembershipMatchingState
fn default() -> MembershipMatchingState
source§impl From<MembershipMatchingState> for i32
impl From<MembershipMatchingState> for i32
source§fn from(value: MembershipMatchingState) -> i32
fn from(value: MembershipMatchingState) -> i32
source§impl Hash for MembershipMatchingState
impl Hash for MembershipMatchingState
source§impl Ord for MembershipMatchingState
impl Ord for MembershipMatchingState
source§fn cmp(&self, other: &MembershipMatchingState) -> Ordering
fn cmp(&self, other: &MembershipMatchingState) -> 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 MembershipMatchingState
impl PartialEq for MembershipMatchingState
source§fn eq(&self, other: &MembershipMatchingState) -> bool
fn eq(&self, other: &MembershipMatchingState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MembershipMatchingState
impl PartialOrd for MembershipMatchingState
source§fn partial_cmp(&self, other: &MembershipMatchingState) -> Option<Ordering>
fn partial_cmp(&self, other: &MembershipMatchingState) -> 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 MembershipMatchingState
impl TryFrom<i32> for MembershipMatchingState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<MembershipMatchingState, UnknownEnumValue>
fn try_from(value: i32) -> Result<MembershipMatchingState, UnknownEnumValue>
impl Copy for MembershipMatchingState
impl Eq for MembershipMatchingState
impl StructuralPartialEq for MembershipMatchingState
Auto Trait Implementations§
impl Freeze for MembershipMatchingState
impl RefUnwindSafe for MembershipMatchingState
impl Send for MembershipMatchingState
impl Sync for MembershipMatchingState
impl Unpin for MembershipMatchingState
impl UnwindSafe for MembershipMatchingState
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