usederive_more::From;/// Resolver Result type alias.
pubtypeResult<T>=core::result::Result<T, Error>;/// Resolver error type.
#[derive(Debug, From)]pubenumError{/// The API key environment variable was not found.
ApiKeyEnvNotFound {/// The name of the environment variable.
env_name:String,},/// The `AuthData` is not a single value.
ResolverAuthDataNotSingleValue,/// Custom error message.
#[from]
Custom(String),}// region: --- Error Boilerplate
implcore::fmt::Display forError{fnfmt(&self, fmt:&mutcore::fmt::Formatter)->core::result::Result<(), core::fmt::Error>{write!(fmt,"{self:?}")}}implstd::error::Error forError{}// endregion: --- Error Boilerplate