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>>,
}
Available on crate feature
v5
only.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 Debug for NetOptions
impl Debug for NetOptions
Source§impl Default for NetOptions
impl Default for NetOptions
Source§fn default() -> NetOptions
fn default() -> NetOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetOptions
impl<'de> Deserialize<'de> for NetOptions
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 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