pub struct ServiceEndpointSpecPort {
pub name: Box<Option<String>>,
pub protocol: Box<Option<String>>,
pub publish_mode: Box<Option<String>>,
pub published_port: Box<Option<i32>>,
pub target_port: Box<i32>,
}
Fields§
§name: Box<Option<String>>
A random name for the port
protocol: Box<Option<String>>
Rrepresents the protocol of a port: tcp
, udp
or sctp
. Defaults to tcp
.
publish_mode: Box<Option<String>>
Represents the mode in which the port is to be published: ‘ingress’ or ‘host’. Defaults to ingress
.
published_port: Box<Option<i32>>
The port on the swarm hosts
target_port: Box<i32>
The port inside the container
Implementations§
source§impl ServiceEndpointSpecPort
impl ServiceEndpointSpecPort
sourcepub fn builder() -> ServiceEndpointSpecPortBuilder
pub fn builder() -> ServiceEndpointSpecPortBuilder
Create an instance of ServiceEndpointSpecPort
using the builder syntax
Trait Implementations§
source§impl Debug for ServiceEndpointSpecPort
impl Debug for ServiceEndpointSpecPort
source§impl<'de> Deserialize<'de> for ServiceEndpointSpecPort
impl<'de> Deserialize<'de> for ServiceEndpointSpecPort
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
Auto Trait Implementations§
impl Freeze for ServiceEndpointSpecPort
impl RefUnwindSafe for ServiceEndpointSpecPort
impl Send for ServiceEndpointSpecPort
impl Sync for ServiceEndpointSpecPort
impl Unpin for ServiceEndpointSpecPort
impl UnwindSafe for ServiceEndpointSpecPort
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