pub struct IpRule {
pub port_ranges: Option<Vec<PortRange>>,
pub protocol: Option<String>,
}Expand description
IP rule information.
This type is not used in any activity, and only used as part of another schema.
Fields§
§port_ranges: Option<Vec<PortRange>>Optional. An optional list of ports to which this rule applies. This field is only applicable for the UDP or (S)TCP protocols. Each entry must be either an integer or a range including a min and max port number.
protocol: Option<String>The IP protocol this rule applies to. This value can either be one of the following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP, SCTP) or a string representation of the integer value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IpRule
impl<'de> Deserialize<'de> for IpRule
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
impl Part for IpRule
Auto Trait Implementations§
impl Freeze for IpRule
impl RefUnwindSafe for IpRule
impl Send for IpRule
impl Sync for IpRule
impl Unpin for IpRule
impl UnwindSafe for IpRule
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