Struct docker_compose::v2::Extends [] [src]

pub struct Extends {
    pub service: RawOr<String>,
    pub file: Option<RawOr<PathBuf>>,
    // some fields omitted
}

Specify another service which should be used as the base for this service.

Fields

The name of a service to extend.

The file in which the service to extend is defined. Defaults to the current file.

Methods

impl Extends
[src]

Create a new Extends by specifying the service name.

use docker_compose::v2 as dc;
dc::Extends::new("webdefaults");Run

Trait Implementations

impl Eq for Extends
[src]

impl PartialEq for Extends
[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 Extends
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Extends
[src]

Formats the value using the given formatter.

impl InterpolateAll for Extends
[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 Extends
[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