pub struct IpamConfig {
pub subnet: Option<String>,
pub ip_range: Option<String>,
pub gateway: Option<String>,
pub aux_addresses: Option<BTreeMap<String, String>>,
}Expand description
IPAM specific configurations.
See more: https://docs.docker.com/reference/compose-file/networks/#ipam
Fields§
§subnet: Option<String>Subnet in CIDR format that represents a network segment
ip_range: Option<String>Range of IPs from which to allocate container IPs.
gateway: Option<String>IPv4 or IPv6 gateway for the master subnet
aux_addresses: Option<BTreeMap<String, String>>Auxiliary IPv4 or IPv6 addresses used by Network driver.
Trait Implementations§
Source§impl Clone for IpamConfig
impl Clone for IpamConfig
Source§fn clone(&self) -> IpamConfig
fn clone(&self) -> IpamConfig
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 IpamConfig
impl Debug for IpamConfig
Source§impl Default for IpamConfig
impl Default for IpamConfig
Source§fn default() -> IpamConfig
fn default() -> IpamConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IpamConfigwhere
IpamConfig: Default,
impl<'de> Deserialize<'de> for IpamConfigwhere
IpamConfig: 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 Ord for IpamConfig
impl Ord for IpamConfig
Source§impl PartialEq for IpamConfig
impl PartialEq for IpamConfig
Source§impl PartialOrd for IpamConfig
impl PartialOrd for IpamConfig
Source§impl Serialize for IpamConfig
impl Serialize for IpamConfig
impl Eq for IpamConfig
impl StructuralPartialEq for IpamConfig
Auto Trait Implementations§
impl Freeze for IpamConfig
impl RefUnwindSafe for IpamConfig
impl Send for IpamConfig
impl Sync for IpamConfig
impl Unpin for IpamConfig
impl UnsafeUnpin for IpamConfig
impl UnwindSafe for IpamConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.