[][src]Enum gcp_client::google::cloud::orgpolicy::v1::policy::PolicyType

pub enum PolicyType {
    ListPolicy(ListPolicy),
    BooleanPolicy(BooleanPolicy),
    RestoreDefault(RestoreDefault),
}

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

impl PolicyType[src]

pub fn encode<B>(&self, buf: &mut B) where
    B: BufMut
[src]

pub fn merge<B>(
    field: &mut Option<PolicyType>,
    tag: u32,
    wire_type: WireType,
    buf: &mut B,
    ctx: DecodeContext
) -> Result<(), DecodeError> where
    B: Buf
[src]

pub fn encoded_len(&self) -> usize[src]

Trait Implementations

impl Clone for PolicyType[src]

impl Debug for PolicyType[src]

impl PartialEq<PolicyType> for PolicyType[src]

impl StructuralPartialEq for PolicyType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]