Struct cargo::util::config::Config
[−]
[src]
pub struct Config {
// some fields omitted
}pub struct Config {
// some fields omitted
}impl Configfn new(shell: MultiShell, cwd: PathBuf, homedir: PathBuf) -> CargoResult<Config>fn default() -> CargoResult<Config>fn home(&self) -> &Pathfn git_db_path(&self) -> PathBuffn git_checkout_path(&self) -> PathBuffn registry_index_path(&self) -> PathBuffn registry_cache_path(&self) -> PathBuffn registry_source_path(&self) -> PathBuffn shell(&self) -> RefMut<MultiShell>fn rustc(&self) -> &Pathfn rustdoc(&self) -> &Pathfn rustc_info(&self) -> &Rustcfn values(&self) -> CargoResult<Ref<HashMap<String, ConfigValue>>>fn cwd(&self) -> &Pathfn target_dir(&self, pkg: &Package) -> PathBuffn set_target_dir(&self, path: &Path)fn get_string(&self, key: &str) -> CargoResult<Option<Value<String>>>fn get_bool(&self, key: &str) -> CargoResult<Option<Value<bool>>>fn get_path(&self, key: &str) -> CargoResult<Option<Value<PathBuf>>>fn get_list(&self, key: &str) -> CargoResult<Option<Value<Vec<(String, PathBuf)>>>>fn get_table(&self, key: &str) -> CargoResult<Option<Value<HashMap<String, CV>>>>fn get_i64(&self, key: &str) -> CargoResult<Option<Value<i64>>>fn expected<T>(&self, ty: &str, key: &str, val: CV) -> CargoResult<T>fn configure_shell(&self, verbose: Option<bool>, quiet: Option<bool>, color: &Option<String>) -> CargoResult<()>