pub struct FirewallRule {
pub name: String,
pub direction: String,
pub protocol: String,
pub port: Option<String>,
pub source: String,
pub destination: String,
pub action: String,
}Expand description
Firewall rule configuration
Fields§
§name: StringRule name
direction: StringDirection: “inbound” or “outbound”
protocol: StringProtocol: “tcp”, “udp”, “icmp”, or “any”
port: Option<String>Port or port range (e.g., “80”, “8000-9000”)
source: StringSource (CIDR or server group name)
destination: StringDestination (server group name or “any”)
action: StringAction: “allow” or “deny”
Trait Implementations§
Source§impl Clone for FirewallRule
impl Clone for FirewallRule
Source§fn clone(&self) -> FirewallRule
fn clone(&self) -> FirewallRule
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 FirewallRule
impl Debug for FirewallRule
Source§impl<'de> Deserialize<'de> for FirewallRule
impl<'de> Deserialize<'de> for FirewallRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FirewallRule
impl Serialize for FirewallRule
Source§impl Validate for FirewallRule
impl Validate for FirewallRule
Source§impl<'v_a> ValidateArgs<'v_a> for FirewallRule
impl<'v_a> ValidateArgs<'v_a> for FirewallRule
Auto Trait Implementations§
impl Freeze for FirewallRule
impl RefUnwindSafe for FirewallRule
impl Send for FirewallRule
impl Sync for FirewallRule
impl Unpin for FirewallRule
impl UnwindSafe for FirewallRule
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