Struct podman_api::models::NetOptions
source · pub struct NetOptions {
pub dns_option: Option<Vec<String, Global>>,
pub dns_search: Option<Vec<String, Global>>,
pub dns_server: Option<Vec<Vec<u8, Global>, Global>>,
pub hostadd: Option<Vec<String, Global>>,
pub netns: Option<Namespace>,
pub network_alias: Option<Vec<String, Global>>,
pub network_options: Option<HashMap<String, Vec<String, Global>, RandomState>>,
pub networks: Option<HashMap<String, PerNetworkOptions, RandomState>>,
pub no_manage_hosts: Option<bool>,
pub no_manage_resolv_conf: Option<bool>,
pub portmappings: Option<Vec<PortMapping, Global>>,
}
Expand description
NetOptions reflect the shared network options between pods and containers
Fields§
§dns_option: Option<Vec<String, Global>>
§dns_search: Option<Vec<String, Global>>
§dns_server: Option<Vec<Vec<u8, Global>, Global>>
§hostadd: Option<Vec<String, Global>>
§netns: Option<Namespace>
§network_alias: Option<Vec<String, Global>>
§network_options: Option<HashMap<String, Vec<String, Global>, RandomState>>
NetworkOptions are additional options for each network
networks: Option<HashMap<String, PerNetworkOptions, RandomState>>
§no_manage_hosts: Option<bool>
§no_manage_resolv_conf: Option<bool>
§portmappings: Option<Vec<PortMapping, Global>>
Trait Implementations§
source§impl Clone for NetOptions
impl Clone for NetOptions
source§fn clone(&self) -> NetOptions
fn clone(&self) -> NetOptions
Returns a copy of the value. Read more
1.0.0 · 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 NetOptions
impl Debug for NetOptions
source§impl<'de> Deserialize<'de> for NetOptions
impl<'de> Deserialize<'de> for NetOptions
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NetOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<NetOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<NetOptions> for NetOptions
impl PartialEq<NetOptions> for NetOptions
source§fn eq(&self, other: &NetOptions) -> bool
fn eq(&self, other: &NetOptions) -> bool
source§impl Serialize for NetOptions
impl Serialize for NetOptions
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more