Enum docker_compose::v2::InterpolationError [] [src]

pub enum InterpolationError {
    InvalidSyntax(String),
    UnparsableValue(InvalidValueError),
    UndefinedVariable(String),
    InterpolationDisabled(String),
}

An error interpolating environment variables in a docker-compose.yml file.

Variants

The interpolation syntax in the specified string was invalid.

A value was passed to escape, but it wasn't parseable as a data structure of the intended type.

The string contains an undefined environment variable. This is not an error for docker-compose (which treats undefined variables as empty), but it is an error for us because we're a docker-compose.yml parsing and transforming library, and we try not to hide errors.

We tried to parse a string that requires environment variable interpolation, but in a context where we've been asked not to access the environment. This is typical when transforming docker-compose.yml files that we want to interpolate at a later time.

Trait Implementations

impl Debug for InterpolationError
[src]

Formats the value using the given formatter.

impl Display for InterpolationError
[src]

Formats the value using the given formatter.

impl Error for InterpolationError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<InvalidValueError> for InterpolationError
[src]

Performs the conversion.