pub struct InstallOptions {
pub dest_root: PathBuf,
pub version_source: VersionSource,
pub platform: Option<Platform>,
pub force: bool,
}Expand description
Configuration passed to install.
Fields§
§dest_root: PathBufRoot directory under which <version_tag>/ and current/ are created.
version_source: VersionSourceWhich release to resolve. See VersionSource.
platform: Option<Platform>Override the host-platform auto-detection (useful for cross-platform
bootstrap in CI). None means “detect from the current host”.
force: boolWhen true, re-download even if a cached install already exists.
Trait Implementations§
Source§impl Clone for InstallOptions
impl Clone for InstallOptions
Source§fn clone(&self) -> InstallOptions
fn clone(&self) -> InstallOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstallOptions
impl Debug for InstallOptions
Auto Trait Implementations§
impl Freeze for InstallOptions
impl RefUnwindSafe for InstallOptions
impl Send for InstallOptions
impl Sync for InstallOptions
impl Unpin for InstallOptions
impl UnsafeUnpin for InstallOptions
impl UnwindSafe for InstallOptions
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