pub struct PortConfig {
pub target: Option<i32>,
pub published: Option<StringOrInt>,
pub protocol: Option<String>,
pub mode: Option<String>,
pub host_ip: Option<String>,
}Expand description
Full port configuration.
Fields§
§target: Option<i32>Target port (container)
published: Option<StringOrInt>Published port (host)
protocol: Option<String>Protocol (tcp/udp)
mode: Option<String>Mode (host/ingress)
host_ip: Option<String>Host IP
Trait Implementations§
Source§impl Clone for PortConfig
impl Clone for PortConfig
Source§fn clone(&self) -> PortConfig
fn clone(&self) -> PortConfig
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 PortConfig
impl Debug for PortConfig
Source§impl Default for PortConfig
impl Default for PortConfig
Source§fn default() -> PortConfig
fn default() -> PortConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PortConfig
impl<'de> Deserialize<'de> for PortConfig
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 PortConfig
impl RefUnwindSafe for PortConfig
impl Send for PortConfig
impl Sync for PortConfig
impl Unpin for PortConfig
impl UnwindSafe for PortConfig
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