#[non_exhaustive]pub struct FirewallLogConfig {
pub enable: Option<bool>,
pub metadata: Option<Metadata>,
/* private fields */
}Available on crate features
firewalls or instances or networks or region-network-firewall-policies only.Expand description
The available logging options for a firewall rule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable: Option<bool>This field denotes whether to enable logging for a particular firewall rule.
metadata: Option<Metadata>This field can only be specified for a particular firewall rule if logging is enabled for that rule. This field denotes whether to include or exclude metadata for firewall logs.
Implementations§
Source§impl FirewallLogConfig
impl FirewallLogConfig
pub fn new() -> Self
Sourcepub fn set_enable<T>(self, v: T) -> Self
pub fn set_enable<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_enable<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable<T>(self, v: Option<T>) -> Self
Sourcepub fn set_metadata<T>(self, v: T) -> Self
pub fn set_metadata<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for FirewallLogConfig
impl Clone for FirewallLogConfig
Source§fn clone(&self) -> FirewallLogConfig
fn clone(&self) -> FirewallLogConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FirewallLogConfig
impl Debug for FirewallLogConfig
Source§impl Default for FirewallLogConfig
impl Default for FirewallLogConfig
Source§fn default() -> FirewallLogConfig
fn default() -> FirewallLogConfig
Returns the “default value” for a type. Read more
Source§impl Message for FirewallLogConfig
impl Message for FirewallLogConfig
Source§impl PartialEq for FirewallLogConfig
impl PartialEq for FirewallLogConfig
impl StructuralPartialEq for FirewallLogConfig
Auto Trait Implementations§
impl Freeze for FirewallLogConfig
impl RefUnwindSafe for FirewallLogConfig
impl Send for FirewallLogConfig
impl Sync for FirewallLogConfig
impl Unpin for FirewallLogConfig
impl UnwindSafe for FirewallLogConfig
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
Mutably borrows from an owned value. Read more