pub struct ServiceNetworkSettings {
pub interface_name: Option<String>,
pub aliases: Option<BTreeSet<String>>,
pub ipv4_address: Option<String>,
pub ipv6_address: Option<String>,
pub mac_address: Option<String>,
pub priority: Option<i64>,
pub gw_priority: Option<i64>,
pub link_local_ips: Option<BTreeSet<String>>,
pub driver_opts: Option<BTreeMap<String, SingleValue>>,
}Expand description
The networks attribute defines the networks that service containers are attached to, referencing entries under the networks top-level element.
See more: https://docs.docker.com/reference/compose-file/services/#networks
Fields§
§interface_name: Option<String>Interface network name used to connect to network
aliases: Option<BTreeSet<String>>Alternative hostnames for this service on the network.
ipv4_address: Option<String>Specify a static IPv4 address for this service on this network.
ipv6_address: Option<String>Specify a static IPv6 address for this service on this network.
mac_address: Option<String>Specify a MAC address for this service on this network.
priority: Option<i64>Specify the priority for the network connection.
gw_priority: Option<i64>Specify the gateway priority for the network connection.
link_local_ips: Option<BTreeSet<String>>List of link-local IPs.
driver_opts: Option<BTreeMap<String, SingleValue>>Driver options for this network.
Trait Implementations§
Source§impl Clone for ServiceNetworkSettings
impl Clone for ServiceNetworkSettings
Source§fn clone(&self) -> ServiceNetworkSettings
fn clone(&self) -> ServiceNetworkSettings
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 ServiceNetworkSettings
impl Debug for ServiceNetworkSettings
Source§impl Default for ServiceNetworkSettings
impl Default for ServiceNetworkSettings
Source§fn default() -> ServiceNetworkSettings
fn default() -> ServiceNetworkSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceNetworkSettingswhere
ServiceNetworkSettings: Default,
impl<'de> Deserialize<'de> for ServiceNetworkSettingswhere
ServiceNetworkSettings: Default,
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 ServiceNetworkSettings
impl PartialEq for ServiceNetworkSettings
Source§impl Serialize for ServiceNetworkSettings
impl Serialize for ServiceNetworkSettings
impl StructuralPartialEq for ServiceNetworkSettings
Auto Trait Implementations§
impl Freeze for ServiceNetworkSettings
impl RefUnwindSafe for ServiceNetworkSettings
impl Send for ServiceNetworkSettings
impl Sync for ServiceNetworkSettings
impl Unpin for ServiceNetworkSettings
impl UnsafeUnpin for ServiceNetworkSettings
impl UnwindSafe for ServiceNetworkSettings
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