pub struct HostFirewallRule {
pub port: i32,
pub end_port: Option<i32>,
pub direction: HostFirewallRuleDirectionEnum,
pub port_type: Option<HostFirewallRulePortTypeEnum>,
pub protocol: String,
}Expand description
This data object type describes a port (or range of ports), identified by port number(s), direction and protocol.
It is used as a convenient way for users to express what ports they want to permit through the firewall.
§How to access
HostSystem::config.firewall?.ruleset?[*].rule[*]HostFirewallSystem::firewall_info.ruleset?[*].rule[*]
Fields§
§port: i32The port number.
end_port: Option<i32>For a port range, the ending port number.
direction: HostFirewallRuleDirectionEnumThe port direction.
port_type: Option<HostFirewallRulePortTypeEnum>The port type.
protocol: StringThe port protocol.
Valid values are defined by the HostFirewallRuleProtocol_enum enumeration.
Trait Implementations§
Source§impl Debug for HostFirewallRule
impl Debug for HostFirewallRule
Source§impl Deserialize for HostFirewallRule
impl Deserialize for HostFirewallRule
Source§impl VimObjectTrait for HostFirewallRule
impl VimObjectTrait for HostFirewallRule
fn as_vim_object_ref<'a>(&'a self) -> &'a dyn VimObjectTrait
fn data_type(&self) -> StructType
impl DataObjectTrait for HostFirewallRule
Auto Trait Implementations§
impl Freeze for HostFirewallRule
impl RefUnwindSafe for HostFirewallRule
impl Send for HostFirewallRule
impl Sync for HostFirewallRule
impl Unpin for HostFirewallRule
impl UnsafeUnpin for HostFirewallRule
impl UnwindSafe for HostFirewallRule
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