Struct docker_api_stubs::models::Port
source · [−]pub struct Port {
pub ip: Option<String>,
pub private_port: u16,
pub public_port: Option<u16>,
pub type_: String,
}
Expand description
An open port on a container
Fields
ip: Option<String>
Host IP address that the container’s port is mapped to
private_port: u16
Port on the container
public_port: Option<u16>
Port exposed on the host
type_: String
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Port
impl<'de> Deserialize<'de> for Port
sourcefn 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
impl StructuralPartialEq for Port
Auto Trait Implementations
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more