more-config 3.0.0

Provides support for configuration
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

/// Represents the deserialization errors that can occur.
#[derive(Error, Debug, PartialEq)]
pub enum Error {
    /// Indicates a value is missing for a field.
    #[error("Missing value for field '{0}'")]
    MissingValue(&'static str),

    /// Indicates a custom error message
    #[error("{0}")]
    Custom(String),
}