pub struct ConfigLoader { /* private fields */ }
Expand description
Configuration loader that merges multiple sources with correct precedence
Implementations§
Source§impl ConfigLoader
impl ConfigLoader
Source§impl ConfigLoader
impl ConfigLoader
Sourcepub fn load(&self) -> Result<Config>
pub fn load(&self) -> Result<Config>
Load configuration from all sources and merge with correct precedence
Sourcepub fn load_for_repo(&self, repo_path: &Path) -> Result<RepositoryConfig>
pub fn load_for_repo(&self, repo_path: &Path) -> Result<RepositoryConfig>
Load repository-specific config for a given path
Sourcepub fn to_sync_config(
&self,
repo_path: &Path,
cli_new_files: Option<bool>,
cli_remote: Option<String>,
) -> Result<SyncConfig>
pub fn to_sync_config( &self, repo_path: &Path, cli_new_files: Option<bool>, cli_remote: Option<String>, ) -> Result<SyncConfig>
Convert to SyncConfig for the synchronizer
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ConfigLoader
impl !RefUnwindSafe for ConfigLoader
impl Send for ConfigLoader
impl !Sync for ConfigLoader
impl Unpin for ConfigLoader
impl UnwindSafe for ConfigLoader
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