Struct gapi_grpc::google::cloud::orgpolicy::v2::policy_spec::PolicyRule[][src]

pub struct PolicyRule {
    pub condition: Option<Expr>,
    pub kind: Option<Kind>,
}

A rule used to express this policy.

Fields

condition: Option<Expr>

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr’ must include from 1 to 10 subexpressions, joined by the “||” or “&&” operators. Each subexpression must be of the form “resource.matchLabels(key_name, value_name)”, where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Label Manager Service. An example expression is: “resource.matchLabels(’labelKeys/123, ‘labelValues/456’)”.

kind: Option<Kind>

Trait Implementations

impl Clone for PolicyRule[src]

impl Debug for PolicyRule[src]

impl Default for PolicyRule[src]

impl Message for PolicyRule[src]

impl PartialEq<PolicyRule> for PolicyRule[src]

impl StructuralPartialEq for PolicyRule[src]

Auto Trait Implementations

impl RefUnwindSafe for PolicyRule

impl Send for PolicyRule

impl Sync for PolicyRule

impl Unpin for PolicyRule

impl UnwindSafe for PolicyRule

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]