pub struct NetworkSettings {Show 18 fields
pub bridge: Option<String>,
pub endpoint_id: Option<String>,
pub gateway: Option<String>,
pub global_i_pv6_address: Option<String>,
pub global_i_pv6_prefix_len: Option<i64>,
pub hairpin_mode: Option<bool>,
pub ip_address: Option<String>,
pub ip_prefix_len: Option<i64>,
pub i_pv6_gateway: Option<String>,
pub link_local_i_pv6_address: Option<String>,
pub link_local_i_pv6_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_i_pv6_addresses: Option<Vec<Address>>,
}
Available on crate feature
v5
only.Expand description
NetworkSettings exposes the network settings in the api
Fields§
§bridge: Option<String>
§endpoint_id: Option<String>
§gateway: Option<String>
§global_i_pv6_address: Option<String>
§global_i_pv6_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>
§i_pv6_gateway: Option<String>
§link_local_i_pv6_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_i_pv6_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>>>
§sandbox_id: Option<String>
§sandbox_key: Option<String>
§secondary_ip_addresses: Option<Vec<Address>>
§secondary_i_pv6_addresses: Option<Vec<Address>>
Trait Implementations§
Source§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
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