pub struct InstallerSwitchesBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> InstallerSwitchesBuilder<S>
impl<S: State> InstallerSwitchesBuilder<S>
Sourcepub fn build(self) -> InstallerSwitcheswhere
S: IsComplete,
pub fn build(self) -> InstallerSwitcheswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn silent(
self,
value: SilentSwitch,
) -> InstallerSwitchesBuilder<SetSilent<S>>where
S::Silent: IsUnset,
pub fn silent(
self,
value: SilentSwitch,
) -> InstallerSwitchesBuilder<SetSilent<S>>where
S::Silent: IsUnset,
Sourcepub fn maybe_silent(
self,
value: Option<SilentSwitch>,
) -> InstallerSwitchesBuilder<SetSilent<S>>where
S::Silent: IsUnset,
pub fn maybe_silent(
self,
value: Option<SilentSwitch>,
) -> InstallerSwitchesBuilder<SetSilent<S>>where
S::Silent: IsUnset,
Sourcepub fn silent_with_progress(
self,
value: SilentWithProgressSwitch,
) -> InstallerSwitchesBuilder<SetSilentWithProgress<S>>where
S::SilentWithProgress: IsUnset,
pub fn silent_with_progress(
self,
value: SilentWithProgressSwitch,
) -> InstallerSwitchesBuilder<SetSilentWithProgress<S>>where
S::SilentWithProgress: IsUnset,
Optional (Some / Option setters). Switches passed to the installer to provide a silent with progress install experience.
This is intended to allow a progress indication to the user, and the indication may come from an installer UI dialogue, but it must not require user interaction to complete. The Windows Package Manager currently defaults to this install experience.
Sourcepub fn maybe_silent_with_progress(
self,
value: Option<SilentWithProgressSwitch>,
) -> InstallerSwitchesBuilder<SetSilentWithProgress<S>>where
S::SilentWithProgress: IsUnset,
pub fn maybe_silent_with_progress(
self,
value: Option<SilentWithProgressSwitch>,
) -> InstallerSwitchesBuilder<SetSilentWithProgress<S>>where
S::SilentWithProgress: IsUnset,
Optional (Some / Option setters). Switches passed to the installer to provide a silent with progress install experience.
This is intended to allow a progress indication to the user, and the indication may come from an installer UI dialogue, but it must not require user interaction to complete. The Windows Package Manager currently defaults to this install experience.
Sourcepub fn interactive(
self,
value: InteractiveSwitch,
) -> InstallerSwitchesBuilder<SetInteractive<S>>where
S::Interactive: IsUnset,
pub fn interactive(
self,
value: InteractiveSwitch,
) -> InstallerSwitchesBuilder<SetInteractive<S>>where
S::Interactive: IsUnset,
Sourcepub fn maybe_interactive(
self,
value: Option<InteractiveSwitch>,
) -> InstallerSwitchesBuilder<SetInteractive<S>>where
S::Interactive: IsUnset,
pub fn maybe_interactive(
self,
value: Option<InteractiveSwitch>,
) -> InstallerSwitchesBuilder<SetInteractive<S>>where
S::Interactive: IsUnset,
Sourcepub fn install_location(
self,
value: InstallLocationSwitch,
) -> InstallerSwitchesBuilder<SetInstallLocation<S>>where
S::InstallLocation: IsUnset,
pub fn install_location(
self,
value: InstallLocationSwitch,
) -> InstallerSwitchesBuilder<SetInstallLocation<S>>where
S::InstallLocation: IsUnset,
Sourcepub fn maybe_install_location(
self,
value: Option<InstallLocationSwitch>,
) -> InstallerSwitchesBuilder<SetInstallLocation<S>>where
S::InstallLocation: IsUnset,
pub fn maybe_install_location(
self,
value: Option<InstallLocationSwitch>,
) -> InstallerSwitchesBuilder<SetInstallLocation<S>>where
S::InstallLocation: IsUnset,
Sourcepub fn log(self, value: LogSwitch) -> InstallerSwitchesBuilder<SetLog<S>>where
S::Log: IsUnset,
pub fn log(self, value: LogSwitch) -> InstallerSwitchesBuilder<SetLog<S>>where
S::Log: IsUnset,
Sourcepub fn maybe_log(
self,
value: Option<LogSwitch>,
) -> InstallerSwitchesBuilder<SetLog<S>>where
S::Log: IsUnset,
pub fn maybe_log(
self,
value: Option<LogSwitch>,
) -> InstallerSwitchesBuilder<SetLog<S>>where
S::Log: IsUnset,
Sourcepub fn upgrade(
self,
value: UpgradeSwitch,
) -> InstallerSwitchesBuilder<SetUpgrade<S>>where
S::Upgrade: IsUnset,
pub fn upgrade(
self,
value: UpgradeSwitch,
) -> InstallerSwitchesBuilder<SetUpgrade<S>>where
S::Upgrade: IsUnset,
Sourcepub fn maybe_upgrade(
self,
value: Option<UpgradeSwitch>,
) -> InstallerSwitchesBuilder<SetUpgrade<S>>where
S::Upgrade: IsUnset,
pub fn maybe_upgrade(
self,
value: Option<UpgradeSwitch>,
) -> InstallerSwitchesBuilder<SetUpgrade<S>>where
S::Upgrade: IsUnset,
Sourcepub fn custom(
self,
value: CustomSwitch,
) -> InstallerSwitchesBuilder<SetCustom<S>>where
S::Custom: IsUnset,
pub fn custom(
self,
value: CustomSwitch,
) -> InstallerSwitchesBuilder<SetCustom<S>>where
S::Custom: IsUnset,
Sourcepub fn maybe_custom(
self,
value: Option<CustomSwitch>,
) -> InstallerSwitchesBuilder<SetCustom<S>>where
S::Custom: IsUnset,
pub fn maybe_custom(
self,
value: Option<CustomSwitch>,
) -> InstallerSwitchesBuilder<SetCustom<S>>where
S::Custom: IsUnset,
Sourcepub fn repair(
self,
value: RepairSwitch,
) -> InstallerSwitchesBuilder<SetRepair<S>>where
S::Repair: IsUnset,
pub fn repair(
self,
value: RepairSwitch,
) -> InstallerSwitchesBuilder<SetRepair<S>>where
S::Repair: IsUnset,
Sourcepub fn maybe_repair(
self,
value: Option<RepairSwitch>,
) -> InstallerSwitchesBuilder<SetRepair<S>>where
S::Repair: IsUnset,
pub fn maybe_repair(
self,
value: Option<RepairSwitch>,
) -> InstallerSwitchesBuilder<SetRepair<S>>where
S::Repair: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for InstallerSwitchesBuilder<S>
impl<S> RefUnwindSafe for InstallerSwitchesBuilder<S>
impl<S> Send for InstallerSwitchesBuilder<S>
impl<S> Sync for InstallerSwitchesBuilder<S>
impl<S> Unpin for InstallerSwitchesBuilder<S>
impl<S> UnwindSafe for InstallerSwitchesBuilder<S>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more