pub struct FirewallConfig {
pub status: State,
pub filter_ipv6: bool,
pub whitelist_hetzner_services: bool,
pub rules: Rules,
}
Expand description
Firewall configuration to apply to a server.
Fields§
§status: State
Status of the server’s firewall.
filter_ipv6: bool
Whether to filter IPv6 traffic.
whitelist_hetzner_services: bool
Whether to whitelist Hetzner’s services, granting them access through the firewall.
rules: Rules
Firewall rules defined for this Firewall.
Implementations§
Source§impl FirewallConfig
impl FirewallConfig
Sourcepub fn to_template_config(&self, name: &str) -> FirewallTemplateConfig
pub fn to_template_config(&self, name: &str) -> FirewallTemplateConfig
Transform into a template configuration, which can be used to create a template from.
Trait Implementations§
Source§impl Debug for FirewallConfig
impl Debug for FirewallConfig
Auto Trait Implementations§
impl Freeze for FirewallConfig
impl RefUnwindSafe for FirewallConfig
impl Send for FirewallConfig
impl Sync for FirewallConfig
impl Unpin for FirewallConfig
impl UnwindSafe for FirewallConfig
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