pub struct SwitchRequest {
pub version: String,
pub base_dir: PathBuf,
pub global: bool,
pub force: bool,
}
Expand description
切换版本请求
Fields§
§version: String
目标版本号
base_dir: PathBuf
版本管理根目录
global: bool
是否全局设置
force: bool
是否强制切换
Trait Implementations§
Source§impl Clone for SwitchRequest
impl Clone for SwitchRequest
Source§fn clone(&self) -> SwitchRequest
fn clone(&self) -> SwitchRequest
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 SwitchRequest
impl RefUnwindSafe for SwitchRequest
impl Send for SwitchRequest
impl Sync for SwitchRequest
impl Unpin for SwitchRequest
impl UnwindSafe for SwitchRequest
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