pub struct NetworkSettings {Show 18 fields
pub bridge: Option<String>,
pub endpoint_id: Option<String>,
pub gateway: Option<String>,
pub global_ipv6_address: Option<String>,
pub global_ipv6_prefix_len: Option<i64>,
pub hairpin_mode: Option<bool>,
pub ip_address: Option<String>,
pub ip_prefix_len: Option<i64>,
pub ipv6_gateway: Option<String>,
pub link_local_ipv6_address: Option<String>,
pub link_local_ipv6_prefix_len: Option<i64>,
pub mac_address: Option<String>,
pub networks: Option<HashMap<String, EndpointSettings>>,
pub ports: Option<HashMap<String, Vec<PortBinding>>>,
pub sandbox_id: Option<String>,
pub sandbox_key: Option<String>,
pub secondary_ip_addresses: Option<Vec<Address>>,
pub secondary_ipv6_addresses: Option<Vec<Address>>,
}
Expand description
NetworkSettings : NetworkSettings exposes the network settings in the api
Fields§
§bridge: Option<String>
§endpoint_id: Option<String>
§gateway: Option<String>
§global_ipv6_address: Option<String>
§global_ipv6_prefix_len: Option<i64>
§hairpin_mode: Option<bool>
HairpinMode specifies if hairpin NAT should be enabled on the virtual interface Deprecated: This field is never set and will be removed in a future release.
ip_address: Option<String>
§ip_prefix_len: Option<i64>
§ipv6_gateway: Option<String>
§link_local_ipv6_address: Option<String>
LinkLocalIPv6Address is an IPv6 unicast address using the link-local prefix Deprecated: This field is never set and will be removed in a future release.
link_local_ipv6_prefix_len: Option<i64>
LinkLocalIPv6PrefixLen is the prefix length of an IPv6 unicast address Deprecated: This field is never set and will be removed in a future release.
mac_address: Option<String>
§networks: Option<HashMap<String, EndpointSettings>>
§ports: Option<HashMap<String, Vec<PortBinding>>>
PortMap is a collection of PortBinding indexed by Port
sandbox_id: Option<String>
§sandbox_key: Option<String>
§secondary_ip_addresses: Option<Vec<Address>>
§secondary_ipv6_addresses: Option<Vec<Address>>
Implementations§
Source§impl NetworkSettings
impl NetworkSettings
Sourcepub fn new() -> NetworkSettings
pub fn new() -> NetworkSettings
NetworkSettings exposes the network settings in the api
Trait Implementations§
Source§impl Clone for NetworkSettings
impl Clone for NetworkSettings
Source§fn clone(&self) -> NetworkSettings
fn clone(&self) -> NetworkSettings
Returns a duplicate 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 NetworkSettings
impl Debug for NetworkSettings
Source§impl Default for NetworkSettings
impl Default for NetworkSettings
Source§fn default() -> NetworkSettings
fn default() -> NetworkSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkSettings
impl<'de> Deserialize<'de> for NetworkSettings
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 NetworkSettings
impl PartialEq for NetworkSettings
Source§impl Serialize for NetworkSettings
impl Serialize for NetworkSettings
impl StructuralPartialEq for NetworkSettings
Auto Trait Implementations§
impl Freeze for NetworkSettings
impl RefUnwindSafe for NetworkSettings
impl Send for NetworkSettings
impl Sync for NetworkSettings
impl Unpin for NetworkSettings
impl UnwindSafe for NetworkSettings
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