pub struct RuleResponse {
pub description: Option<Option<String>>,
pub destination_ips: Vec<String>,
pub direction: Direction,
pub port: Option<String>,
pub protocol: Protocol,
pub source_ips: Vec<String>,
}Fields§
§description: Option<Option<String>>Description of the rule.
destination_ips: Vec<String>List of permitted IPv4/IPv6 addresses for outgoing traffic. The direction must be set to out. IPs must be in CIDR block notation. You can specify 100 CIDR blocks at most. The CIDR blocks may refer to networks (with empty host bits) or single hosts. For example, a network could be defined with 10.0.1.0/24 or 2001:db8:ff00:42::/64, and a single host with 10.0.1.1/32 or 2001:db8:ff00:42::8329/128. Use 0.0.0.0/0 to allow any IPv4 addresses and ::/0 to allow any IPv6 addresses. IPv6 CIDRs will be transformed to their canonical form according to RFC5952.
direction: DirectionTraffic direction in which the rule should be applied to. Use source_ips for direction in and destination_ips for direction out to specify IPs.
port: Option<String>Port or port range to apply the rule for. Only applicable for protocols tcp and udp. A port range can be specified by separating lower and upper bounds with a dash. 1024-5000 will include all ports starting from 1024 up to port 5000.
protocol: ProtocolNetwork protocol to apply the rule for.
source_ips: Vec<String>List of permitted IPv4/IPv6 addresses for incoming traffic. The direction must be set to in. IPs must be provided in CIDR block notation. You can specify 100 CIDR blocks at most. The CIDR blocks may refer to networks (with empty host bits) or single hosts. For example, a network could be defined with 10.0.1.0/24 or 2001:db8:ff00:42::/64, and a single host with 10.0.1.1/32 or 2001:db8:ff00:42::8329/128. Use 0.0.0.0/0 to allow any IPv4 addresses and ::/0 to allow any IPv6 addresses. IPv6 CIDRs will be transformed to their canonical form according to RFC5952.
Implementations§
Trait Implementations§
Source§impl Clone for RuleResponse
impl Clone for RuleResponse
Source§fn clone(&self) -> RuleResponse
fn clone(&self) -> RuleResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more