Struct oxide_api::types::VpcFirewallRule
source · [−]pub struct VpcFirewallRule {
pub action: VpcFirewallRuleAction,
pub direction: VpcFirewallRuleDirection,
pub filters: VpcFirewallRuleFilter,
pub identity: User,
pub priority: i64,
pub status: VpcFirewallRuleStatus,
pub targets: Vec<VpcFirewallRuleTarget>,
}Expand description
A single rule in a VPC firewall
Fields
action: VpcFirewallRuleActiondirection: VpcFirewallRuleDirectionfilters: VpcFirewallRuleFilter- Filter for a firewall rule. A given packet must match every field that is present for the rule to apply to it. A packet matches a field if any entry in that field matches the packet.
identity: User- Client view of a
User
priority: i64- A count of bytes, typically used either for memory or storage capacity
- The maximum supported byte count is
i64::MAX. This makes it somewhat inconvenient to define constructors: a u32 constructor can be infallible, but an i64 constructor can fail (if the value is negative) and a u64 constructor can fail (if the value is larger than i64::MAX). We provide all of these for consumers’ convenience.
status: VpcFirewallRuleStatustargets: Vec<VpcFirewallRuleTarget>- list of sets of instances that the rule applies to
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for VpcFirewallRule
impl Send for VpcFirewallRule
impl Sync for VpcFirewallRule
impl Unpin for VpcFirewallRule
impl UnwindSafe for VpcFirewallRule
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more