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 moreSource§impl Debug for OroConfigOptions
impl Debug for OroConfigOptions
Auto Trait Implementations§
impl Freeze for OroConfigOptions
impl !RefUnwindSafe for OroConfigOptions
impl Send for OroConfigOptions
impl Sync for OroConfigOptions
impl Unpin for OroConfigOptions
impl !UnwindSafe for OroConfigOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more