pub struct DockerComposeConfig {
pub version: String,
pub services: HashMap<String, ServiceConfig>,
pub networks: Option<HashMap<String, NetworkConfig>>,
pub volumes: Option<HashMap<String, VolumeConfig>>,
}Expand description
Docker Compose configuration structure
Fields§
§version: StringDocker Compose file format version
services: HashMap<String, ServiceConfig>Service definitions keyed by service name
networks: Option<HashMap<String, NetworkConfig>>Network definitions for service communication
volumes: Option<HashMap<String, VolumeConfig>>Volume definitions for persistent storage
Trait Implementations§
Source§impl Clone for DockerComposeConfig
impl Clone for DockerComposeConfig
Source§fn clone(&self) -> DockerComposeConfig
fn clone(&self) -> DockerComposeConfig
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 DockerComposeConfig
impl Debug for DockerComposeConfig
Source§impl<'de> Deserialize<'de> for DockerComposeConfig
impl<'de> Deserialize<'de> for DockerComposeConfig
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 DockerComposeConfig
impl RefUnwindSafe for DockerComposeConfig
impl Send for DockerComposeConfig
impl Sync for DockerComposeConfig
impl Unpin for DockerComposeConfig
impl UnwindSafe for DockerComposeConfig
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