Struct compose_yml::v2::File [] [src]

pub struct File {
    pub version: String,
    pub services: BTreeMap<String, Service>,
    pub volumes: BTreeMap<String, Volume>,
    pub networks: BTreeMap<String, Network>,
    // some fields omitted
}

A docker-compose.yml file.

Fields

The version of the docker-compose.yml file format. Must be 2.

The individual services which make up this app.

Named volumes used by this app.

TODO MED: Can we parse just volume names followed by a colon?

The networks used by this app.

Methods

impl File
[src]

[src]

Read a file from an input stream containing YAML.

[src]

Write a file to an output stream as YAML.

[src]

Read a file from the specified path.

[src]

Write a file to the specified path.

[src]

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

[src]

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 Debug for File
[src]

[src]

Formats the value using the given formatter.

impl Clone for File
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for File
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for File
[src]

impl InterpolateAll for File
[src]

Recursive merge all fields in the structure.

[src]

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.

[src]

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]

[src]

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

impl FromStr for File
[src]

The associated error which can be returned from parsing.

[src]

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