pub struct NormalizedComposeConfig {
pub services: BTreeMap<String, NormalizedServiceConfig>,
pub volumes: BTreeMap<String, NormalizedVolumeDeclaration>,
pub networks: BTreeMap<String, NormalizedNetworkDeclaration>,
}Expand description
Deterministic, syntax-independent Compose project model.
All semantic maps use BTreeMap, alternate list/map spellings are collapsed
into one representation, and supported driver defaults are explicit.
Fields§
§services: BTreeMap<String, NormalizedServiceConfig>Canonically ordered service definitions.
volumes: BTreeMap<String, NormalizedVolumeDeclaration>Canonically ordered named volume declarations.
networks: BTreeMap<String, NormalizedNetworkDeclaration>Canonically ordered named network declarations.
Implementations§
Source§impl NormalizedComposeConfig
impl NormalizedComposeConfig
Sourcepub fn to_canonical_json(&self) -> Result<String, Error>
pub fn to_canonical_json(&self) -> Result<String, Error>
Serialize a byte-stable, pretty JSON representation with a final newline.
Sourcepub fn service_order(&self) -> Result<Vec<String>, ComposeNormalizationError>
pub fn service_order(&self) -> Result<Vec<String>, ComposeNormalizationError>
Compute a deterministic dependency-first service order.
Sourcepub fn into_config(self) -> ComposeConfig
pub fn into_config(self) -> ComposeConfig
Convert the canonical model into the compatibility model consumed by the current Runtime translation layer.
Trait Implementations§
Source§impl Clone for NormalizedComposeConfig
impl Clone for NormalizedComposeConfig
Source§fn clone(&self) -> NormalizedComposeConfig
fn clone(&self) -> NormalizedComposeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NormalizedComposeConfig
impl Debug for NormalizedComposeConfig
impl Eq for NormalizedComposeConfig
Source§impl From<NormalizedComposeConfig> for ComposeConfig
impl From<NormalizedComposeConfig> for ComposeConfig
Source§fn from(config: NormalizedComposeConfig) -> Self
fn from(config: NormalizedComposeConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NormalizedComposeConfig
impl PartialEq for NormalizedComposeConfig
Source§impl Serialize for NormalizedComposeConfig
impl Serialize for NormalizedComposeConfig
impl StructuralPartialEq for NormalizedComposeConfig
Auto Trait Implementations§
impl Freeze for NormalizedComposeConfig
impl RefUnwindSafe for NormalizedComposeConfig
impl Send for NormalizedComposeConfig
impl Sync for NormalizedComposeConfig
impl Unpin for NormalizedComposeConfig
impl UnsafeUnpin for NormalizedComposeConfig
impl UnwindSafe for NormalizedComposeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.