Struct podman_api_stubs::models::NetOptions
source · [−]pub struct NetOptions {
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_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<Ip>>
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
sourceimpl Clone for NetOptions
impl Clone for NetOptions
sourcefn clone(&self) -> NetOptions
fn clone(&self) -> NetOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NetOptions
impl Debug for NetOptions
sourceimpl<'de> Deserialize<'de> for NetOptions
impl<'de> Deserialize<'de> for NetOptions
sourcefn 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
sourceimpl PartialEq<NetOptions> for NetOptions
impl PartialEq<NetOptions> for NetOptions
sourcefn eq(&self, other: &NetOptions) -> bool
fn eq(&self, other: &NetOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for NetOptions
impl Serialize for NetOptions
impl StructuralPartialEq for NetOptions
Auto Trait Implementations
impl RefUnwindSafe for NetOptions
impl Send for NetOptions
impl Sync for NetOptions
impl Unpin for NetOptions
impl UnwindSafe for NetOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more