pub struct DockerCompose {
pub configs: BTreeMap<FieldKey, Config>,
pub include: Vec<Include>,
pub secrets: BTreeMap<FieldKey, Secret>,
pub services: BTreeMap<FieldKey, ComposeService>,
pub networks: BTreeMap<FieldKey, Network>,
pub version: Option<String>,
pub volumes: BTreeMap<FieldKey, Volume>,
}Fields§
§configs: BTreeMap<FieldKey, Config>§include: Vec<Include>§secrets: BTreeMap<FieldKey, Secret>§services: BTreeMap<FieldKey, ComposeService>§networks: BTreeMap<FieldKey, Network>§version: Option<String>§volumes: BTreeMap<FieldKey, Volume>Implementations§
Source§impl DockerCompose
impl DockerCompose
pub fn from_path(path: impl AsRef<Path>) -> Result<DockerCompose>
pub fn from_bytes(bytes: &[u8]) -> Result<DockerCompose>
Source§impl DockerCompose
impl DockerCompose
pub fn contains_service(&self, service_name: &str) -> bool
pub fn get_service(&self, service_name: &str) -> Option<&ComposeService>
pub fn contains_network(&self, network_name: &str) -> bool
pub fn get_network(&self, network_name: &str) -> Option<&Network>
pub fn contains_volume(&self, volume_name: &str) -> bool
pub fn get_volume(&self, volume_name: &str) -> Option<&Volume>
pub fn contains_secret(&self, secret_name: &str) -> bool
pub fn get_secret(&self, secret_name: &str) -> Option<&Secret>
pub fn contains_config(&self, config_name: &str) -> bool
pub fn get_config(&self, config_name: &str) -> Option<&ComposeService>
Trait Implementations§
Source§impl Clone for DockerCompose
impl Clone for DockerCompose
Source§fn clone(&self) -> DockerCompose
fn clone(&self) -> DockerCompose
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 DockerCompose
impl Debug for DockerCompose
Source§impl<'de> Deserialize<'de> for DockerCompose
impl<'de> Deserialize<'de> for DockerCompose
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
Source§impl FromStr for DockerCompose
impl FromStr for DockerCompose
Source§impl PartialEq for DockerCompose
impl PartialEq for DockerCompose
Source§impl PartialOrd for DockerCompose
impl PartialOrd for DockerCompose
Source§impl Serialize for DockerCompose
impl Serialize for DockerCompose
impl StructuralPartialEq for DockerCompose
Auto Trait Implementations§
impl Freeze for DockerCompose
impl RefUnwindSafe for DockerCompose
impl Send for DockerCompose
impl Sync for DockerCompose
impl Unpin for DockerCompose
impl UnwindSafe for DockerCompose
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