pub struct ScopeConfigurationLoader;Expand description
Scope configuration loader that handles project/user/default hierarchy
Implementations§
Source§impl ScopeConfigurationLoader
impl ScopeConfigurationLoader
Sourcepub async fn load_configuration(scope: RuleScope) -> Result<ScopeConfiguration>
pub async fn load_configuration(scope: RuleScope) -> Result<ScopeConfiguration>
Load configuration from project/user/defaults hierarchy
Sourcepub async fn save_project_config(config: &ScopeConfiguration) -> Result<()>
pub async fn save_project_config(config: &ScopeConfiguration) -> Result<()>
Save configuration to project-level config file
Sourcepub async fn save_user_config(config: &ScopeConfiguration) -> Result<()>
pub async fn save_user_config(config: &ScopeConfiguration) -> Result<()>
Save configuration to user-level config file
Auto Trait Implementations§
impl Freeze for ScopeConfigurationLoader
impl RefUnwindSafe for ScopeConfigurationLoader
impl Send for ScopeConfigurationLoader
impl Sync for ScopeConfigurationLoader
impl Unpin for ScopeConfigurationLoader
impl UnwindSafe for ScopeConfigurationLoader
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