pub struct FirewallRule {
pub id: String,
pub description: String,
pub direction: FirewallRuleDirection,
pub protocol: FirewallRuleProtocol,
pub port: Option<String>,
pub cidr: Option<Box<FirewallRuleCidr>>,
pub group_id: String,
}Fields§
§id: StringID правила.
description: StringОписание правила.
direction: FirewallRuleDirectionEgress или ingress трафик.
protocol: FirewallRuleProtocolСетевой протокол.
port: Option<String>Порт или диапазон портов, в случае tcp или udp.
cidr: Option<Box<FirewallRuleCidr>>§group_id: StringID группы правил.
Implementations§
Source§impl FirewallRule
impl FirewallRule
pub fn new( id: String, description: String, direction: FirewallRuleDirection, protocol: FirewallRuleProtocol, group_id: String, ) -> FirewallRule
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 (const: unstable) · 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 Default for FirewallRule
impl Default for FirewallRule
Source§fn default() -> FirewallRule
fn default() -> FirewallRule
Returns the “default value” for a type. Read more
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 PartialEq for FirewallRule
impl PartialEq for FirewallRule
Source§fn eq(&self, other: &FirewallRule) -> bool
fn eq(&self, other: &FirewallRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FirewallRule
impl Serialize for FirewallRule
impl StructuralPartialEq 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 UnsafeUnpin 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