pub struct ComposePortCommand {
pub config: ComposeConfig,
pub service: String,
pub private_port: u16,
pub protocol: Option<String>,
pub index: Option<u32>,
}
Expand description
Docker Compose port command
Print the public port for a port binding.
Fields§
§config: ComposeConfig
Base configuration
service: String
Service name
private_port: u16
Private port number
protocol: Option<String>
Protocol (tcp/udp)
index: Option<u32>
Index of the container (if service has multiple instances)
Implementations§
Source§impl ComposePortCommand
impl ComposePortCommand
Sourcepub fn project_name(self, name: impl Into<String>) -> Self
pub fn project_name(self, name: impl Into<String>) -> Self
Set project name
Trait Implementations§
Source§impl Clone for ComposePortCommand
impl Clone for ComposePortCommand
Source§fn clone(&self) -> ComposePortCommand
fn clone(&self) -> ComposePortCommand
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 ComposeCommandV2 for ComposePortCommand
impl ComposeCommandV2 for ComposePortCommand
Source§type Output = PortResult
type Output = PortResult
The output type this command produces
Source§fn get_config(&self) -> &ComposeConfig
fn get_config(&self) -> &ComposeConfig
Get the compose configuration
Source§fn get_config_mut(&mut self) -> &mut ComposeConfig
fn get_config_mut(&mut self) -> &mut ComposeConfig
Get mutable compose configuration
Source§fn execute_compose<'life0, 'async_trait>(
&'life0 self,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_compose<'life0, 'async_trait>(
&'life0 self,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute compose command with given arguments
Source§impl Debug for ComposePortCommand
impl Debug for ComposePortCommand
Source§impl Default for ComposePortCommand
impl Default for ComposePortCommand
Source§fn default() -> ComposePortCommand
fn default() -> ComposePortCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposePortCommand
impl RefUnwindSafe for ComposePortCommand
impl Send for ComposePortCommand
impl Sync for ComposePortCommand
impl Unpin for ComposePortCommand
impl UnwindSafe for ComposePortCommand
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