pub struct GetOutputItems {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 Clone for GetOutputItems
impl Clone for GetOutputItems
Source§fn clone(&self) -> GetOutputItems
fn clone(&self) -> GetOutputItems
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 GetOutputItems
impl Debug for GetOutputItems
Source§impl<'de> Deserialize<'de> for GetOutputItems
impl<'de> Deserialize<'de> for GetOutputItems
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 GetOutputItems
impl RefUnwindSafe for GetOutputItems
impl Send for GetOutputItems
impl Sync for GetOutputItems
impl Unpin for GetOutputItems
impl UnsafeUnpin for GetOutputItems
impl UnwindSafe for GetOutputItems
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