pub struct NetworkProtectRuleResponse {
pub ip_protocol: NetworkProtectRuleIpProtocol,
pub source_prefix_list_id: String,
pub destination_ip_address: String,
pub source_ports: Box<NetworkProtectRuleSourcePorts>,
pub destination_ports: Box<NetworkProtectRuleDestinationPorts>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
}Expand description
NetworkProtectRuleResponse : A rule as returned by the API.
Fields§
§ip_protocol: NetworkProtectRuleIpProtocol§source_prefix_list_id: StringMatch traffic whose source appears in this prefix list.
destination_ip_address: StringMatch traffic sent to this address; omit for any destination. An address outside a Network using this Rule Set never matches and still consumes one of the 64 rules. The API does not enforce containment in a network prefix; attached Rule Sets require a compatible IP family.
source_ports: Box<NetworkProtectRuleSourcePorts>§destination_ports: Box<NetworkProtectRuleDestinationPorts>§created_at: Option<String>An ISO 8601 timestamp in UTC.
updated_at: Option<String>An ISO 8601 timestamp in UTC.
Implementations§
Source§impl NetworkProtectRuleResponse
impl NetworkProtectRuleResponse
Sourcepub fn new(
ip_protocol: NetworkProtectRuleIpProtocol,
source_prefix_list_id: String,
destination_ip_address: String,
source_ports: NetworkProtectRuleSourcePorts,
destination_ports: NetworkProtectRuleDestinationPorts,
) -> NetworkProtectRuleResponse
pub fn new( ip_protocol: NetworkProtectRuleIpProtocol, source_prefix_list_id: String, destination_ip_address: String, source_ports: NetworkProtectRuleSourcePorts, destination_ports: NetworkProtectRuleDestinationPorts, ) -> NetworkProtectRuleResponse
A rule as returned by the API.
Trait Implementations§
Source§impl Clone for NetworkProtectRuleResponse
impl Clone for NetworkProtectRuleResponse
Source§impl Debug for NetworkProtectRuleResponse
impl Debug for NetworkProtectRuleResponse
Source§impl Default for NetworkProtectRuleResponse
impl Default for NetworkProtectRuleResponse
Source§impl<'de> Deserialize<'de> for NetworkProtectRuleResponse
impl<'de> Deserialize<'de> for NetworkProtectRuleResponse
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 StructuralPartialEq for NetworkProtectRuleResponse
Auto Trait Implementations§
impl Freeze for NetworkProtectRuleResponse
impl RefUnwindSafe for NetworkProtectRuleResponse
impl Send for NetworkProtectRuleResponse
impl Sync for NetworkProtectRuleResponse
impl Unpin for NetworkProtectRuleResponse
impl UnsafeUnpin for NetworkProtectRuleResponse
impl UnwindSafe for NetworkProtectRuleResponse
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