Struct docker_api::opts::ContainerConnectionOptsBuilder
source · pub struct ContainerConnectionOptsBuilder { /* private fields */ }
Implementations§
source§impl ContainerConnectionOptsBuilder
impl ContainerConnectionOptsBuilder
sourcepub fn ipam_config(self, config: EndpointIpamConfig) -> Self
pub fn ipam_config(self, config: EndpointIpamConfig) -> Self
Endpoint’s IPAM configuration.
pub fn aliases<S>(self, aliases: impl IntoIterator<Item = S>) -> Selfwhere S: Serialize,
pub fn links<S>(self, links: impl IntoIterator<Item = S>) -> Selfwhere S: Serialize,
sourcepub fn network_id(self, network_id: impl Serialize) -> Self
pub fn network_id(self, network_id: impl Serialize) -> Self
Unique ID of the network.
sourcepub fn endpoint_id(self, endpoint_id: impl Serialize) -> Self
pub fn endpoint_id(self, endpoint_id: impl Serialize) -> Self
Unique ID for the service endpoint in a Sandbox.
sourcepub fn prefix_len(self, prefix_len: isize) -> Self
pub fn prefix_len(self, prefix_len: isize) -> Self
Mask length of the IPv4 address.
sourcepub fn ipv6_gateway(self, ipv6_gateway: impl Serialize) -> Self
pub fn ipv6_gateway(self, ipv6_gateway: impl Serialize) -> Self
IPv6 gateway address.
sourcepub fn ipv6_prefix_len(self, ipv6_prefix_len: i64) -> Self
pub fn ipv6_prefix_len(self, ipv6_prefix_len: i64) -> Self
Mask length of the global IPv6 address.
sourcepub fn driver_opts<K, V>(
self,
driver_opts: impl IntoIterator<Item = (K, V)>
) -> Selfwhere
K: Serialize + Eq + Hash,
V: Serialize,
pub fn driver_opts<K, V>( self, driver_opts: impl IntoIterator<Item = (K, V)> ) -> Selfwhere K: Serialize + Eq + Hash, V: Serialize,
DriverOpts is a mapping of driver options and values. These options are passed directly to the driver and are driver specific.
pub fn build(self) -> ContainerConnectionOpts
Trait Implementations§
source§impl Default for ContainerConnectionOptsBuilder
impl Default for ContainerConnectionOptsBuilder
source§fn default() -> ContainerConnectionOptsBuilder
fn default() -> ContainerConnectionOptsBuilder
Returns the “default value” for a type. Read more