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 for EndpointPortConfig
impl PartialEq for EndpointPortConfig
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
impl StructuralPartialEq for EndpointPortConfig
Auto Trait Implementations§
impl Freeze for EndpointPortConfig
impl RefUnwindSafe for EndpointPortConfig
impl Send for EndpointPortConfig
impl Sync for EndpointPortConfig
impl Unpin for EndpointPortConfig
impl UnwindSafe for EndpointPortConfig
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