pub struct UpgradeOptions {
pub version: Option<String>,
pub yes: bool,
pub dry_run: bool,
pub method: Option<UpgradeMethod>,
pub source_path: Option<PathBuf>,
}Expand description
Options for the upgrade command
Fields§
§version: Option<String>Target version (only for Cargo registry installs)
yes: boolSkip confirmation prompt
dry_run: boolCheck for updates without installing
method: Option<UpgradeMethod>Override installation method
source_path: Option<PathBuf>Source path for cargo_source method
Auto Trait Implementations§
impl Freeze for UpgradeOptions
impl RefUnwindSafe for UpgradeOptions
impl Send for UpgradeOptions
impl Sync for UpgradeOptions
impl Unpin for UpgradeOptions
impl UnwindSafe for UpgradeOptions
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