pub struct GetOutput {Show 16 fields
pub action: String,
pub comment: Option<String>,
pub dest: Option<String>,
pub dport: Option<String>,
pub enable: Option<i64>,
pub icmp_type: Option<String>,
pub iface: Option<String>,
pub ipversion: Option<i64>,
pub log: Option<Log>,
pub macro_def: Option<String>,
pub pos: i64,
pub proto: Option<String>,
pub source: Option<String>,
pub sport: Option<String>,
pub ty: String,
pub additional_properties: HashMap<String, Value>,
}Fields§
§action: StringRule action (‘ACCEPT’, ‘DROP’, ‘REJECT’) or security group name
comment: Option<String>Descriptive comment
dest: Option<String>Restrict packet destination address
dport: Option<String>Restrict TCP/UDP destination port
enable: Option<i64>Flag to enable/disable a rule
icmp_type: Option<String>Specify icmp-type. Only valid if proto equals ‘icmp’ or ‘icmpv6’/‘ipv6-icmp’
iface: Option<String>Network interface name. You have to use network configuration key names for VMs and containers
ipversion: Option<i64>IP version (4 or 6) - automatically determined from source/dest addresses
log: Option<Log>Log level for firewall rule
macro_def: Option<String>Use predefined standard macro
pos: i64Rule position in the ruleset
proto: Option<String>IP protocol. You can use protocol names (‘tcp’/‘udp’) or simple numbers, as defined in ‘/etc/protocols’
source: Option<String>Restrict packet source address
sport: Option<String>Restrict TCP/UDP source port
ty: StringRule type
additional_properties: HashMap<String, Value>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GetOutput
impl<'de> Deserialize<'de> for GetOutput
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
Auto Trait Implementations§
impl Freeze for GetOutput
impl RefUnwindSafe for GetOutput
impl Send for GetOutput
impl Sync for GetOutput
impl Unpin for GetOutput
impl UnsafeUnpin for GetOutput
impl UnwindSafe for GetOutput
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