Enum google_api_proto::google::cloud::orgpolicy::v1::policy::list_policy::AllValues
source · #[repr(i32)]pub enum AllValues {
Unspecified = 0,
Allow = 1,
Deny = 2,
}
Expand description
This enum can be used to set Policies
that apply to all possible
configuration values rather than specific values in allowed_values
or
denied_values
.
Settting this to ALLOW
will mean this Policy
allows all values.
Similarly, setting it to DENY
will mean no values are allowed. If
set to either ALLOW
or DENY,
allowed_valuesand
denied_valuesmust be unset. Setting this to
ALL_VALUES_UNSPECIFIEDallows for setting
allowed_valuesand
denied_values`.
Variants§
Unspecified = 0
Indicates that allowed_values or denied_values must be set.
Allow = 1
A policy with this set allows all values.
Deny = 2
A policy with this set denies all values.
Implementations§
source§impl AllValues
impl AllValues
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 Ord for AllValues
impl Ord for AllValues
source§impl PartialEq for AllValues
impl PartialEq for AllValues
source§impl PartialOrd for AllValues
impl PartialOrd for AllValues
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 AllValues
impl TryFrom<i32> for AllValues
§type Error = DecodeError
type Error = DecodeError
impl Copy for AllValues
impl Eq for AllValues
impl StructuralPartialEq for AllValues
Auto Trait Implementations§
impl Freeze for AllValues
impl RefUnwindSafe for AllValues
impl Send for AllValues
impl Sync for AllValues
impl Unpin for AllValues
impl UnwindSafe for AllValues
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