Struct pulumi_wasm_docker::ContainerPort
source · pub struct ContainerPort {
pub external: Box<Option<i32>>,
pub internal: Box<i32>,
pub ip: Box<Option<String>>,
pub protocol: Box<Option<String>>,
}
Fields§
§external: Box<Option<i32>>
Port exposed out of the container. If not given a free random port >= 32768
will be used.
internal: Box<i32>
Port within the container.
ip: Box<Option<String>>
IP address/mask that can access this port. Defaults to 0.0.0.0
.
protocol: Box<Option<String>>
Protocol that can be used over this port. Defaults to tcp
.
Implementations§
source§impl ContainerPort
impl ContainerPort
sourcepub fn builder() -> ContainerPortBuilder
pub fn builder() -> ContainerPortBuilder
Create an instance of ContainerPort
using the builder syntax
Trait Implementations§
source§impl Debug for ContainerPort
impl Debug for ContainerPort
source§impl<'de> Deserialize<'de> for ContainerPort
impl<'de> Deserialize<'de> for ContainerPort
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 ContainerPort
impl RefUnwindSafe for ContainerPort
impl Send for ContainerPort
impl Sync for ContainerPort
impl Unpin for ContainerPort
impl UnwindSafe for ContainerPort
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