Struct docker_compose::v2::File [] [src]

pub struct File {
    pub services: BTreeMap<StringService>,
    pub networks: BTreeMap<StringNetwork>,
    // some fields omitted
}

A docker-compose.yml file.

Fields

The individual services which make up this app.

The networks used by this app.

Methods

impl File
[src]

Read a file from an input stream containing YAML.

Write a file to an output stream as YAML.

Read a file from the specified path.

Write a file to the specified path.

Inline all our external resources, such as env_files, looking up paths relative to base.

Convert this file to a standalone file, with no dependencies on the current environment or any external files. This does not lock down the image versions used in this file.

Trait Implementations

impl Eq for File
[src]

impl PartialEq for File
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for File
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for File
[src]

Formats the value using the given formatter.

impl InterpolateAll for File
[src]

Recursive merge all fields in the structure.

Recursively walk over this type, interpolating all RawOr values containing references to the environment. The default implementation leaves a value unchanged. Read more

impl MergeOverride for File
[src]

Recursive merge all fields in the structure.

Given this value and an override value, merge the override value into this one, producing a new value. Read more

impl Default for File
[src]

Returns the "default value" for a type. Read more

impl FromStr for File
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more