pub struct InteractiveConfig { /* private fields */ }Expand description
Interactive TOML config editor
Implementations§
Source§impl InteractiveConfig
impl InteractiveConfig
Sourcepub fn new(path: PathBuf) -> Self
pub fn new(path: PathBuf) -> Self
Create a new config editor for a new file with default sections
Sourcepub fn with_tool_provider(self, provider: Box<dyn ToolProvider>) -> Self
pub fn with_tool_provider(self, provider: Box<dyn ToolProvider>) -> Self
Set the tool provider for the tool picker
Sourcepub fn with_version_provider(self, provider: Box<dyn VersionProvider>) -> Self
pub fn with_version_provider(self, provider: Box<dyn VersionProvider>) -> Self
Set the version provider for version cycling
Sourcepub fn with_backend_provider(self, provider: Box<dyn BackendProvider>) -> Self
pub fn with_backend_provider(self, provider: Box<dyn BackendProvider>) -> Self
Set the backend provider for the backend picker
Sourcepub fn add_prepare(&mut self, provider: &str)
pub fn add_prepare(&mut self, provider: &str)
Add a prepare provider with auto = true
Sourcepub async fn run(self) -> Result<ConfigResult>
pub async fn run(self) -> Result<ConfigResult>
Run the interactive editor
Auto Trait Implementations§
impl Freeze for InteractiveConfig
impl !RefUnwindSafe for InteractiveConfig
impl Send for InteractiveConfig
impl Sync for InteractiveConfig
impl Unpin for InteractiveConfig
impl UnsafeUnpin for InteractiveConfig
impl !UnwindSafe for InteractiveConfig
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