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
InvalidSyntax(String)
The interpolation syntax in the specified string was invalid.
UnparsableValue(InvalidValueError)
A value was passed to escape
, but it wasn't parseable as a data
structure of the intended type.
UndefinedVariable(String)
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.
InterpolationDisabled(String)
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]
impl Display for InterpolationError
[src]
impl Error for InterpolationError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<InvalidValueError> for InterpolationError
[src]
fn from(err: InvalidValueError) -> InterpolationError
Performs the conversion.