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<Box<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 : 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<Box<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>>
Implementations§
Source§impl NetOptions
impl NetOptions
Sourcepub fn new() -> NetOptions
pub fn new() -> NetOptions
NetOptions reflect the shared network options between pods and containers
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 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
Source§impl PartialEq for NetOptions
impl PartialEq for NetOptions
Source§impl Serialize for NetOptions
impl Serialize for NetOptions
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