pub struct SmartCabalInstallOptions {
pub version: String,
pub strategy: InstallStrategy,
pub set_active: bool,
pub force: bool,
}Expand description
Options for smart Cabal installation.
Fields§
§version: StringCabal version to install.
strategy: InstallStrategyInstallation strategy.
set_active: boolWhether to set as active after installation.
force: boolForce reinstall even if already installed.
Implementations§
Source§impl SmartCabalInstallOptions
impl SmartCabalInstallOptions
Sourcepub fn with_strategy(self, strategy: InstallStrategy) -> Self
pub fn with_strategy(self, strategy: InstallStrategy) -> Self
Set the installation strategy.
Sourcepub fn with_set_active(self, set_active: bool) -> Self
pub fn with_set_active(self, set_active: bool) -> Self
Set as active after installation.
Sourcepub fn with_force(self, force: bool) -> Self
pub fn with_force(self, force: bool) -> Self
Force reinstall.
Trait Implementations§
Source§impl Clone for SmartCabalInstallOptions
impl Clone for SmartCabalInstallOptions
Auto Trait Implementations§
impl Freeze for SmartCabalInstallOptions
impl RefUnwindSafe for SmartCabalInstallOptions
impl Send for SmartCabalInstallOptions
impl Sync for SmartCabalInstallOptions
impl Unpin for SmartCabalInstallOptions
impl UnsafeUnpin for SmartCabalInstallOptions
impl UnwindSafe for SmartCabalInstallOptions
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