pub struct Expose {
pub port: u16,
pub protocol: Option<ExposeProtocol>,
}Expand description
Represents an EXPOSE instruction.
use nanite_docker::{Expose, ExposeProtocol};
let expose = Expose {
port: 8080,
protocol: Some(ExposeProtocol::tcp),
};
let expose_built = format!("{expose}");
assert_eq!(expose_built, "EXPOSE 8080/tcp");Fields§
§port: u16§protocol: Option<ExposeProtocol>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expose
impl RefUnwindSafe for Expose
impl Send for Expose
impl Sync for Expose
impl Unpin for Expose
impl UnwindSafe for Expose
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