Struct compose_yml::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]

[src]

Create a new Extends by specifying the service name.

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

Trait Implementations

impl Debug for Extends
[src]

[src]

Formats the value using the given formatter.

impl Clone for Extends
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

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