Struct oro_config::OroConfigOptions
source · pub struct OroConfigOptions { /* private fields */ }Implementations§
source§impl OroConfigOptions
impl OroConfigOptions
pub fn new() -> Self
pub fn global(self, global: bool) -> Self
pub fn env(self, env: bool) -> Self
pub fn pkg_root(self, root: Option<PathBuf>) -> Self
pub fn global_config_file(self, file: Option<PathBuf>) -> Self
pub fn set_default(self, key: &str, value: &str) -> Result<Self, OroConfigError>
pub fn load(self) -> Result<OroConfig>
Trait Implementations§
source§impl Clone for OroConfigOptions
impl Clone for OroConfigOptions
source§fn clone(&self) -> OroConfigOptions
fn clone(&self) -> OroConfigOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more