pub struct NetOptions {
pub dns_option: Option<Vec<String>>,
pub dns_search: Option<Vec<String>>,
pub dns_server: Option<Vec<String>>,
pub hostadd: Option<Vec<String>>,
pub netns: Option<Namespace>,
pub network_alias: Option<Vec<String>>,
pub network_options: Option<HashMap<String, Vec<String>>>,
pub networks: Option<HashMap<String, PerNetworkOptions>>,
pub no_manage_hosts: Option<bool>,
pub no_manage_resolv_conf: Option<bool>,
pub portmappings: Option<Vec<PortMapping>>,
}
Expand description
NetOptions reflect the shared network options between pods and containers
Fields§
§dns_option: Option<Vec<String>>
§dns_search: Option<Vec<String>>
§dns_server: Option<Vec<String>>
§hostadd: Option<Vec<String>>
§netns: Option<Namespace>
§network_alias: Option<Vec<String>>
§network_options: Option<HashMap<String, Vec<String>>>
NetworkOptions are additional options for each network
networks: Option<HashMap<String, PerNetworkOptions>>
§no_manage_hosts: Option<bool>
§no_manage_resolv_conf: Option<bool>
§portmappings: Option<Vec<PortMapping>>
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 for NetOptions
impl PartialEq for NetOptions
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
impl StructuralPartialEq for NetOptions
Auto Trait Implementations§
impl Freeze for NetOptions
impl RefUnwindSafe for NetOptions
impl Send for NetOptions
impl Sync for NetOptions
impl Unpin for NetOptions
impl UnwindSafe for NetOptions
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