Enum config_struct::GenerationError[][src]

pub enum GenerationError {
    UnknownInputFormat(String),
    InvalidFieldName(String),
    HeterogenousArray(String),
    MissingFilePath,
    DeserializationFailed(String),
    Options(OptionsError),
}

An error occurring during code generation.

Variants

Occurs when the config format can't be determined from the filename extension of the input file.

Occurs when encountering a field in the config which is not a valid name for a struct field.

Occurs when an array in the config file contains multiple different types of data, which cannot be represented in a Rust struct.

Occurs when generating from source and not a file, if attempting to also generate dynamic loading functions.

Because no input filepath was given, it's impossible to generate a function which loads from that file.

Occurs when the config file could not be correctly parsed.

Occurs when invalid options were provided.

Trait Implementations

impl Debug for GenerationError
[src]

Formats the value using the given formatter. Read more

impl Fail for GenerationError
[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Returns a iterator over the causes of this Fail with itself as the first item and the root_cause as the final item. Read more

Returns the "root cause" of this Fail - the last value in the cause chain which does not return an underlying cause. Read more

impl Display for GenerationError
[src]

Formats the value using the given formatter. Read more

impl From<GenerationError> for Error
[src]

Performs the conversion.

impl From<OptionsError> for GenerationError
[src]

Performs the conversion.

Auto Trait Implementations