Struct docker_api::models::EndpointPortConfig
source · pub struct EndpointPortConfig {
pub name: Option<String>,
pub protocol: Option<String>,
pub publish_mode: Option<String>,
pub published_port: Option<isize>,
pub target_port: Option<isize>,
}
Fields§
§name: Option<String>
§protocol: Option<String>
§publish_mode: Option<String>
The mode in which port is published.
- “ingress” makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not.
- “host” bypasses the routing mesh and publish the port directly on the swarm node where that service is running.
published_port: Option<isize>
The port on the swarm hosts.
target_port: Option<isize>
The port inside the container.
Trait Implementations§
source§impl Clone for EndpointPortConfig
impl Clone for EndpointPortConfig
source§fn clone(&self) -> EndpointPortConfig
fn clone(&self) -> EndpointPortConfig
Returns a copy 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 EndpointPortConfig
impl Debug for EndpointPortConfig
source§impl<'de> Deserialize<'de> for EndpointPortConfig
impl<'de> Deserialize<'de> for EndpointPortConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EndpointPortConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<EndpointPortConfig, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<EndpointPortConfig> for EndpointPortConfig
impl PartialEq<EndpointPortConfig> for EndpointPortConfig
source§fn eq(&self, other: &EndpointPortConfig) -> bool
fn eq(&self, other: &EndpointPortConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EndpointPortConfig
impl Serialize for EndpointPortConfig
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