Struct podman_api_stubs::models::PodNetworkConfig [−][src]
pub struct PodNetworkConfig {
pub cni_networks: Option<Vec<String>>,
pub dns_option: Option<Vec<String>>,
pub dns_search: Option<Vec<String>>,
pub dns_server: Option<Vec<Ip>>,
pub hostadd: Option<Vec<String>>,
pub netns: Option<Namespace>,
pub network_options: Option<HashMap<String, Vec<String>>>,
pub no_manage_hosts: Option<bool>,
pub no_manage_resolv_conf: Option<bool>,
pub portmappings: Option<Vec<PortMapping>>,
pub static_ip: Option<Ip>,
pub static_mac: Option<HardwareAddr>,
}
Fields
cni_networks: Option<Vec<String>>
dns_option: Option<Vec<String>>
dns_search: Option<Vec<String>>
dns_server: Option<Vec<Ip>>
hostadd: Option<Vec<String>>
netns: Option<Namespace>
network_options: Option<HashMap<String, Vec<String>>>
no_manage_hosts: Option<bool>
no_manage_resolv_conf: Option<bool>
portmappings: Option<Vec<PortMapping>>
static_ip: Option<Ip>
static_mac: Option<HardwareAddr>
Implementations
pub fn with_network_options(
self,
network_options: HashMap<String, Vec<String>>
) -> PodNetworkConfig
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 PodNetworkConfig
impl Send for PodNetworkConfig
impl Sync for PodNetworkConfig
impl Unpin for PodNetworkConfig
impl UnwindSafe for PodNetworkConfig
Blanket Implementations
Mutably borrows from an owned value. Read more