INNER CODE UNIT · Rust

load

winfunc/deepreasoning · src/config.rs:90

    pub fn load() -> anyhow::Result<Self> {
        let config_path = Path::new("config.toml");
        let config = config::Config::builder()
            .add_source(config::File::from(config_path))
            .build()?;

        Ok(config.try_deserialize()?)
    }
}

/// Provides default configuration values.
///
/// These defaults are used when a configuration file is not present
/// or when specific values are not provided in the config file.
impl Default for Config {
    fn default() -> Self {
        Self {
            server: ServerConfig {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…