pub struct PostParams {Show 28 fields
pub address: Option<Ipv4Addr>,
pub address6: Option<Ipv6Addr>,
pub autostart: Option<bool>,
pub bond_primary: Option<String>,
pub bond_mode: Option<BondMode>,
pub bond_xmit_hash_policy: Option<BondXmitHashPolicy>,
pub bridge_ports: Option<String>,
pub bridge_vlan_aware: Option<bool>,
pub cidr: Option<String>,
pub cidr6: Option<String>,
pub comments: Option<String>,
pub comments6: Option<String>,
pub gateway: Option<Ipv4Addr>,
pub gateway6: Option<Ipv6Addr>,
pub iface: String,
pub mtu: Option<u64>,
pub netmask: Option<String>,
pub netmask6: Option<u64>,
pub ovs_bonds: Option<String>,
pub ovs_bridge: Option<String>,
pub ovs_options: Option<String>,
pub ovs_ports: Option<String>,
pub ovs_tag: Option<u64>,
pub slaves: Option<String>,
pub ty: Type,
pub vlan_id: Option<u64>,
pub vlan_raw_device: Option<String>,
pub additional_properties: HashMap<String, Value>,
}Fields§
§address: Option<Ipv4Addr>IP address.
address6: Option<Ipv6Addr>IP address.
autostart: Option<bool>Automatically start interface on boot.
bond_primary: Option<String>Specify the primary interface for active-backup bond.
bond_mode: Option<BondMode>Bonding mode.
bond_xmit_hash_policy: Option<BondXmitHashPolicy>Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes.
bridge_ports: Option<String>Specify the interfaces you want to add to your bridge.
bridge_vlan_aware: Option<bool>Enable bridge vlan support.
cidr: Option<String>IPv4 CIDR.
cidr6: Option<String>IPv6 CIDR.
comments: Option<String>Comments
comments6: Option<String>Comments
gateway: Option<Ipv4Addr>Default gateway address.
gateway6: Option<Ipv6Addr>Default ipv6 gateway address.
iface: StringNetwork interface name.
mtu: Option<u64>MTU.
netmask: Option<String>Network mask.
netmask6: Option<u64>Network mask.
ovs_bonds: Option<String>Specify the interfaces used by the bonding device.
ovs_bridge: Option<String>The OVS bridge associated with a OVS port. This is required when you create an OVS port.
ovs_options: Option<String>OVS interface options.
ovs_ports: Option<String>Specify the interfaces you want to add to your bridge.
ovs_tag: Option<u64>Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond)
slaves: Option<String>Specify the interfaces used by the bonding device.
ty: TypeNetwork interface type
vlan_id: Option<u64>vlan-id for a custom named vlan interface (ifupdown2 only).
vlan_raw_device: Option<String>Specify the raw interface for the vlan interface.
additional_properties: HashMap<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for PostParams
impl Clone for PostParams
Source§fn clone(&self) -> PostParams
fn clone(&self) -> PostParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more