[][src]Struct google_cloudkms1_beta1::Rule

pub struct Rule {
    pub not_in: Option<Vec<String>>,
    pub description: Option<String>,
    pub in_: Option<Vec<String>>,
    pub action: Option<String>,
    pub conditions: Option<Vec<Condition>>,
    pub log_config: Option<Vec<LogConfig>>,
    pub permissions: Option<Vec<String>>,
}

A rule to be applied in a Policy.

This type is not used in any activity, and only used as part of another schema.

Fields

not_in: Option<Vec<String>>

If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. The format for in and not_in entries is the same as for members in a Binding (see google/iam/v1/policy.proto).

description: Option<String>

Human-readable description of the rule.

in_: Option<Vec<String>>

If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.

action: Option<String>

Required

conditions: Option<Vec<Condition>>

Additional restrictions that must be met

log_config: Option<Vec<LogConfig>>

The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.

permissions: Option<Vec<String>>

A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '' matches all permissions, and a verb part of '' (e.g., 'storage.buckets.*') matches all verbs.

Trait Implementations

impl Clone for Rule[src]

impl Debug for Rule[src]

impl Default for Rule[src]

impl<'de> Deserialize<'de> for Rule[src]

impl Part for Rule[src]

impl Serialize for Rule[src]

Auto Trait Implementations

impl RefUnwindSafe for Rule

impl Send for Rule

impl Sync for Rule

impl Unpin for Rule

impl UnwindSafe for Rule

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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<T> Typeable for T where
    T: Any