pub struct ContainerDefinition {
pub image: String,
pub command: Option<Vec<String>>,
pub env: Option<HashMap<String, String>>,
pub volumes: Option<Vec<VolumeDefinition>>,
}
Expand description
Container definition
Fields§
§image: String
Container image
command: Option<Vec<String>>
Command to run
env: Option<HashMap<String, String>>
Environment variables
volumes: Option<Vec<VolumeDefinition>>
Volumes
Trait Implementations§
Source§impl Clone for ContainerDefinition
impl Clone for ContainerDefinition
Source§fn clone(&self) -> ContainerDefinition
fn clone(&self) -> ContainerDefinition
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 Debug for ContainerDefinition
impl Debug for ContainerDefinition
Source§impl<'de> Deserialize<'de> for ContainerDefinition
impl<'de> Deserialize<'de> for ContainerDefinition
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 ContainerDefinition
impl RefUnwindSafe for ContainerDefinition
impl Send for ContainerDefinition
impl Sync for ContainerDefinition
impl Unpin for ContainerDefinition
impl UnwindSafe for ContainerDefinition
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