pub struct InstallRequest {
pub version: String,
pub install_dir: PathBuf,
pub download_dir: PathBuf,
pub force: bool,
}
Expand description
安装请求
Fields§
§version: String
要安装的版本号
install_dir: PathBuf
安装目录
download_dir: PathBuf
下载目录(由调用方管理,可能是缓存目录)
force: bool
是否强制重新安装
Trait Implementations§
Source§impl Clone for InstallRequest
impl Clone for InstallRequest
Source§fn clone(&self) -> InstallRequest
fn clone(&self) -> InstallRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InstallRequest
impl RefUnwindSafe for InstallRequest
impl Send for InstallRequest
impl Sync for InstallRequest
impl Unpin for InstallRequest
impl UnwindSafe for InstallRequest
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