pub struct DockerCompose {
pub version: Option<String>,
pub name: Option<String>,
pub services: HashMap<String, ComposeService>,
pub volumes: Option<Value>,
pub networks: Option<Value>,
pub secrets: Option<Value>,
pub configs: Option<Value>,
pub x_common: Option<Value>,
}Fields§
§version: Option<String>§name: Option<String>§services: HashMap<String, ComposeService>§volumes: Option<Value>§networks: Option<Value>§secrets: Option<Value>§configs: Option<Value>§x_common: Option<Value>Implementations§
Source§impl DockerCompose
impl DockerCompose
pub fn from_value(data: Value) -> Result<Self, String>
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 ConfigValidator for DockerCompose
impl ConfigValidator for DockerCompose
Source§fn validate_structure(&self) -> Vec<Diagnostic>
fn validate_structure(&self) -> Vec<Diagnostic>
Structural validation — errors mean the config is invalid. Read more
Source§fn validate_semantics(&self) -> Vec<Diagnostic>
fn validate_semantics(&self) -> Vec<Diagnostic>
Semantic validation — best-practice warnings, hints, and info. Read more
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Full validation: structure + semantics combined.
Source§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
Auto Trait Implementations§
impl Freeze for DockerCompose
impl RefUnwindSafe for DockerCompose
impl Send for DockerCompose
impl Sync for DockerCompose
impl Unpin for DockerCompose
impl UnsafeUnpin 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