YamlError

Type Alias YamlError 

Source
pub type YamlError = Error;
Available on crate feature yaml only.
Expand description

Error type for YAML serialization operations.

Aliased Type§

pub enum YamlError {
    Message {
        msg: String,
    },
    Format {
        error: Error,
    },
    IO {
        error: Error,
    },
    Unexpected {
        msg: String,
    },
    InvalidOptions(String),
}

Variants§

§

Message

Free-form error.

Fields

§

Format

Wrapper for formatting errors.

Fields

§error: Error
§

IO

Wrapper for I/O errors.

Fields

§error: Error
§

Unexpected

This is used with anchors and should normally not surface, please report bug if it does.

Fields

§

InvalidOptions(String)

Options used would produce invalid YAML (0 indentation, etc)