Enum google_api_proto::google::cloud::orgpolicy::v1::policy::PolicyType
source · pub enum PolicyType {
ListPolicy(ListPolicy),
BooleanPolicy(BooleanPolicy),
RestoreDefault(RestoreDefault),
}
Expand description
The field to populate is based on the constraint_type
value in the
Constraint
.
list_constraint
=> list_policy
boolean_constraint
=> boolean_policy
A restore_default
message may be used with any Constraint
type.
Providing a *_policy that is incompatible with the constraint_type
will
result in an invalid_argument
error.
Attempting to set a Policy
with a policy_type
not set will result in an
invalid_argument
error.
Variants§
ListPolicy(ListPolicy)
List of values either allowed or disallowed.
BooleanPolicy(BooleanPolicy)
For boolean Constraints
, whether to enforce the Constraint
or not.
RestoreDefault(RestoreDefault)
Restores the default behavior of the constraint; independent of
Constraint
type.
Implementations§
source§impl PolicyType
impl PolicyType
sourcepub fn merge<B>(
field: &mut Option<PolicyType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<PolicyType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for PolicyType
impl Clone for PolicyType
source§fn clone(&self) -> PolicyType
fn clone(&self) -> PolicyType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PolicyType
impl Debug for PolicyType
source§impl PartialEq for PolicyType
impl PartialEq for PolicyType
source§fn eq(&self, other: &PolicyType) -> bool
fn eq(&self, other: &PolicyType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PolicyType
Auto Trait Implementations§
impl Freeze for PolicyType
impl RefUnwindSafe for PolicyType
impl Send for PolicyType
impl Sync for PolicyType
impl Unpin for PolicyType
impl UnwindSafe for PolicyType
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request