pub struct ContainerPortResponse {
pub ports: HashMap<String, Option<Vec<ContainerPortBinding>>>,
}Expand description
Response body for GET /api/v1/containers/{id}/port (Docker compat shape).
Mirrors Docker’s {"Ports": {"80/tcp": [{"HostIp":"...","HostPort":"..."}]}}
body. Each key is <container_port>/<protocol> and the value is the list
of host bindings for that port (or null when the port is exposed but not
published).
Fields§
§ports: HashMap<String, Option<Vec<ContainerPortBinding>>>Map of "<port>/<protocol>" to host bindings.
Trait Implementations§
Source§impl ComposeSchema for ContainerPortResponse
impl ComposeSchema for ContainerPortResponse
Source§impl Debug for ContainerPortResponse
impl Debug for ContainerPortResponse
Source§impl Default for ContainerPortResponse
impl Default for ContainerPortResponse
Source§fn default() -> ContainerPortResponse
fn default() -> ContainerPortResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerPortResponse
impl<'de> Deserialize<'de> for ContainerPortResponse
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
Source§impl Serialize for ContainerPortResponse
impl Serialize for ContainerPortResponse
Auto Trait Implementations§
impl Freeze for ContainerPortResponse
impl RefUnwindSafe for ContainerPortResponse
impl Send for ContainerPortResponse
impl Sync for ContainerPortResponse
impl Unpin for ContainerPortResponse
impl UnsafeUnpin for ContainerPortResponse
impl UnwindSafe for ContainerPortResponse
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