pub struct NetworkSettings {Show 18 fields
pub bridge: Option<String>,
pub endpoint_id: Option<String>,
pub gateway: Option<String>,
pub global_i_pv_6_address: Option<String>,
pub global_i_pv_6_prefix_len: Option<i64>,
pub hairpin_mode: Option<bool>,
pub ip_address: Option<String>,
pub ip_prefix_len: Option<i64>,
pub i_pv_6_gateway: Option<String>,
pub link_local_i_pv_6_address: Option<String>,
pub link_local_i_pv_6_prefix_len: Option<i64>,
pub mac_address: Option<String>,
pub networks: Option<HashMap<String, EndpointSettings>>,
pub ports: Option<HashMap<String, Option<Vec<PortBinding>>>>,
pub sandbox_id: Option<String>,
pub sandbox_key: Option<String>,
pub secondary_ip_addresses: Option<Vec<Address>>,
pub secondary_i_pv_6_addresses: Option<Vec<Address>>,
}
Expand description
NetworkSettings exposes the network settings in the api
Fields§
§bridge: Option<String>
§endpoint_id: Option<String>
§gateway: Option<String>
§global_i_pv_6_address: Option<String>
§global_i_pv_6_prefix_len: Option<i64>
§hairpin_mode: Option<bool>
§ip_address: Option<String>
§ip_prefix_len: Option<i64>
§i_pv_6_gateway: Option<String>
§link_local_i_pv_6_address: Option<String>
§link_local_i_pv_6_prefix_len: Option<i64>
§mac_address: Option<String>
§networks: Option<HashMap<String, EndpointSettings>>
§ports: Option<HashMap<String, Option<Vec<PortBinding>>>>
§sandbox_id: Option<String>
§sandbox_key: Option<String>
§secondary_ip_addresses: Option<Vec<Address>>
§secondary_i_pv_6_addresses: Option<Vec<Address>>
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NetworkSettings
impl Debug for NetworkSettings
Source§impl<'de> Deserialize<'de> for NetworkSettings
impl<'de> Deserialize<'de> for NetworkSettings
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NetworkSettings, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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