pub struct ConfigLoader;Expand description
Loads refactoring configuration from files
Implementations§
Source§impl ConfigLoader
impl ConfigLoader
Sourcepub fn load_from_yaml(path: &Path) -> Result<RefactoringConfig>
pub fn load_from_yaml(path: &Path) -> Result<RefactoringConfig>
Load configuration from a YAML file
Sourcepub fn load_from_json(path: &Path) -> Result<RefactoringConfig>
pub fn load_from_json(path: &Path) -> Result<RefactoringConfig>
Load configuration from a JSON file
Sourcepub fn load(path: &Path) -> Result<RefactoringConfig>
pub fn load(path: &Path) -> Result<RefactoringConfig>
Load configuration from a file (auto-detect format)
Sourcepub fn validate(config: &RefactoringConfig) -> Result<()>
pub fn validate(config: &RefactoringConfig) -> Result<()>
Validate configuration
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