pub struct Compose {
pub version: Option<String>,
pub services: HashMap<String, Service>,
pub networks: Option<HashMap<String, Option<Network>>>,
pub volumes: Option<HashMap<String, Option<Volume>>>,
pub configs: Option<HashMap<String, Option<Config>>>,
pub secrets: Option<HashMap<String, Option<Secret>>>,
}
Expand description
Represents an entire Docker Compose manifest
All fields other than the services
field are optional. Optional fields are skipped
from serialization if they are None
Fields§
§version: Option<String>
§services: HashMap<String, Service>
§networks: Option<HashMap<String, Option<Network>>>
§volumes: Option<HashMap<String, Option<Volume>>>
§configs: Option<HashMap<String, Option<Config>>>
§secrets: Option<HashMap<String, Option<Secret>>>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Compose
impl<'de> Deserialize<'de> for Compose
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 Compose
impl RefUnwindSafe for Compose
impl Send for Compose
impl Sync for Compose
impl Unpin for Compose
impl UnwindSafe for Compose
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