greenhouse_core 0.2.0

greenhouse_core
Documentation
pub type Result<T> = core::result::Result<T, Error>;

#[derive(Debug)]
pub enum Error {
    IllFormattedConfig,
    MissingConfig,
    ScriptingApiNotConfigured,
    Request(reqwest::Error),
}

// region:    --- Error Boilerplate
impl core::fmt::Display for Error {
    fn fmt(&self, fmt: &mut core::fmt::Formatter) -> core::result::Result<(), core::fmt::Error> {
        write!(fmt, "{self:?}")
    }
}

impl std::error::Error for Error {}
// endregion: --- Error Boilerplate