Enum google_api_proto::google::identity::accesscontextmanager::v1::service_perimeter_config::IdentityType
source · #[repr(i32)]pub enum IdentityType {
Unspecified = 0,
AnyIdentity = 1,
AnyUserAccount = 2,
AnyServiceAccount = 3,
}
Expand description
Specifies the types of identities that are allowed access in either [IngressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] or [EgressFrom] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom] rules.
Variants§
Unspecified = 0
No blanket identity group specified.
AnyIdentity = 1
Authorize access from all identities outside the perimeter.
AnyUserAccount = 2
Authorize access from all human users outside the perimeter.
AnyServiceAccount = 3
Authorize access from all service accounts outside the perimeter.
Implementations§
source§impl IdentityType
impl IdentityType
source§impl IdentityType
impl IdentityType
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 IdentityType
impl Clone for IdentityType
source§fn clone(&self) -> IdentityType
fn clone(&self) -> IdentityType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IdentityType
impl Debug for IdentityType
source§impl Default for IdentityType
impl Default for IdentityType
source§fn default() -> IdentityType
fn default() -> IdentityType
source§impl From<IdentityType> for i32
impl From<IdentityType> for i32
source§fn from(value: IdentityType) -> i32
fn from(value: IdentityType) -> i32
source§impl Hash for IdentityType
impl Hash for IdentityType
source§impl Ord for IdentityType
impl Ord for IdentityType
source§fn cmp(&self, other: &IdentityType) -> Ordering
fn cmp(&self, other: &IdentityType) -> 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 IdentityType
impl PartialEq for IdentityType
source§fn eq(&self, other: &IdentityType) -> bool
fn eq(&self, other: &IdentityType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IdentityType
impl PartialOrd for IdentityType
source§fn partial_cmp(&self, other: &IdentityType) -> Option<Ordering>
fn partial_cmp(&self, other: &IdentityType) -> 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 IdentityType
impl TryFrom<i32> for IdentityType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<IdentityType, DecodeError>
fn try_from(value: i32) -> Result<IdentityType, DecodeError>
impl Copy for IdentityType
impl Eq for IdentityType
impl StructuralPartialEq for IdentityType
Auto Trait Implementations§
impl Freeze for IdentityType
impl RefUnwindSafe for IdentityType
impl Send for IdentityType
impl Sync for IdentityType
impl Unpin for IdentityType
impl UnwindSafe for IdentityType
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