pub struct InstallConfigBuilder { /* private fields */ }Expand description
Builder for InstallConfig
Implementations§
Source§impl InstallConfigBuilder
impl InstallConfigBuilder
Sourcepub fn install_method(self, method: InstallMethod) -> Self
pub fn install_method(self, method: InstallMethod) -> Self
Set the installation method
Sourcepub fn download_url(self, url: impl Into<String>) -> Self
pub fn download_url(self, url: impl Into<String>) -> Self
Set the download URL
Sourcepub fn install_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn install_dir(self, dir: impl Into<PathBuf>) -> Self
Set the installation directory
Sourcepub fn build(self) -> InstallConfig
pub fn build(self) -> InstallConfig
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstallConfigBuilder
impl RefUnwindSafe for InstallConfigBuilder
impl Send for InstallConfigBuilder
impl Sync for InstallConfigBuilder
impl Unpin for InstallConfigBuilder
impl UnwindSafe for InstallConfigBuilder
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