3fcf022236
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
16 lines
272 B
Rust
16 lines
272 B
Rust
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub struct Container {
|
|
/// The Docker container ID
|
|
id: String,
|
|
}
|
|
|
|
impl Container {
|
|
pub fn new(id: impl Into<String>) -> Self {
|
|
Self { id: id.into() }
|
|
}
|
|
|
|
pub fn id(&self) -> &str {
|
|
&self.id
|
|
}
|
|
}
|