#[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
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 (const: unstable) · 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
impl StructuralPartialEq for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Auto Trait Implementations§
impl Freeze for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl RefUnwindSafe for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl Send for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl Sync for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl Unpin for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl UnsafeUnpin for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
impl UnwindSafe for NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request