#[non_exhaustive]pub struct NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy {
pub display_name: Option<String>,
pub name: Option<String>,
pub packet_mirroring_rules: Vec<FirewallPolicyRule>,
pub priority: Option<i32>,
pub rules: Vec<FirewallPolicyRule>,
pub short_name: Option<String>,
pub type: Option<Type>,
/* private fields */
}networks only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.display_name: Option<String>Output only. [Output Only] Deprecated, please use short name instead. The display name of the firewall policy.
name: Option<String>Output only. [Output Only] The name of the firewall policy.
packet_mirroring_rules: Vec<FirewallPolicyRule>Output only. [Output Only] The packet mirroring rules that apply to the network.
priority: Option<i32>Output only. [Output only] Priority of firewall policy association. Not applicable for type=HIERARCHY.
rules: Vec<FirewallPolicyRule>[Output Only] The rules that apply to the network.
short_name: Option<String>Output only. [Output Only] The short name of the firewall policy.
type: Option<Type>Output only. [Output Only] The type of the firewall policy.
Implementations§
Source§impl NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
pub fn new() -> Self
Sourcepub fn set_display_name<T>(self, v: T) -> Self
👎Deprecated
pub fn set_display_name<T>(self, v: T) -> Self
Sets the value of display_name.
§Example
let x = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_display_name("example");Sourcepub fn set_or_clear_display_name<T>(self, v: Option<T>) -> Self
👎Deprecated
pub fn set_or_clear_display_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of display_name.
§Example
let x = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_or_clear_display_name(Some("example"));
let x = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_or_clear_display_name(None::<String>);Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_packet_mirroring_rules<T, V>(self, v: T) -> Self
pub fn set_packet_mirroring_rules<T, V>(self, v: T) -> Self
Sets the value of packet_mirroring_rules.
§Example
use google_cloud_compute_v1::model::FirewallPolicyRule;
let x = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new()
.set_packet_mirroring_rules([
FirewallPolicyRule::default()/* use setters */,
FirewallPolicyRule::default()/* use (different) setters */,
]);Sourcepub fn set_priority<T>(self, v: T) -> Self
pub fn set_priority<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_priority<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_priority<T>(self, v: Option<T>) -> Self
Sourcepub fn set_short_name<T>(self, v: T) -> Self
pub fn set_short_name<T>(self, v: T) -> Self
Sets the value of short_name.
§Example
let x = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_short_name("example");Sourcepub fn set_or_clear_short_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_short_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of short_name.
§Example
let x = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_or_clear_short_name(Some("example"));
let x = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_or_clear_short_name(None::<String>);Sourcepub fn set_type<T>(self, v: T) -> Self
pub fn set_type<T>(self, v: T) -> Self
Sets the value of r#type.
§Example
use google_cloud_compute_v1::model::networks_get_effective_firewalls_response_effective_firewall_policy::Type;
let x0 = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_type(Type::Network);
let x1 = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_type(Type::System);
let x2 = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_type(Type::Unspecified);Sourcepub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of r#type.
§Example
use google_cloud_compute_v1::model::networks_get_effective_firewalls_response_effective_firewall_policy::Type;
let x0 = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_or_clear_type(Some(Type::Network));
let x1 = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_or_clear_type(Some(Type::System));
let x2 = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_or_clear_type(Some(Type::Unspecified));
let x_none = NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::new().set_or_clear_type(None::<Type>);Trait Implementations§
Source§impl Clone for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl Clone for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Source§fn clone(&self) -> NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
fn clone(&self) -> NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl Default for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Source§fn default() -> NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
fn default() -> NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Source§impl PartialEq for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl PartialEq for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Source§fn eq(
&self,
other: &NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy,
) -> bool
fn eq( &self, other: &NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy, ) -> bool
self and other values to be equal, and is used by ==.