Struct google_compute1::api::SecurityPolicyRule[][src]

pub struct SecurityPolicyRule {
    pub action: Option<String>,
    pub description: Option<String>,
    pub kind: Option<String>,
    pub match_: Option<SecurityPolicyRuleMatcher>,
    pub preview: Option<bool>,
    pub priority: Option<i32>,
}

Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

action: Option<String>

The Action to perform when the client connection triggers the rule. Can currently be either "allow" or "deny()" where valid values for status are 403, 404, and 502.

description: Option<String>

An optional description of this resource. Provide this property when you create the resource.

kind: Option<String>

[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules

match_: Option<SecurityPolicyRuleMatcher>

A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.

preview: Option<bool>

If set to true, the specified action is not enforced.

priority: Option<i32>

An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.

Trait Implementations

impl Clone for SecurityPolicyRule[src]

impl Debug for SecurityPolicyRule[src]

impl Default for SecurityPolicyRule[src]

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

impl RequestValue for SecurityPolicyRule[src]

impl ResponseResult for SecurityPolicyRule[src]

impl Serialize for SecurityPolicyRule[src]

Auto Trait Implementations

impl RefUnwindSafe for SecurityPolicyRule[src]

impl Send for SecurityPolicyRule[src]

impl Sync for SecurityPolicyRule[src]

impl Unpin for SecurityPolicyRule[src]

impl UnwindSafe for SecurityPolicyRule[src]

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> Instrument 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.