1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::cli::Cli; #[derive(Debug)] pub struct Config { pub enable_cache: bool, } impl From<&Cli> for Config { fn from(cli: &Cli) -> Self { Self { enable_cache: !cli.no_cache, } } }