pub struct UpgradeSpec {
pub to: Option<String>,
pub all: bool,
pub apply: bool,
pub rollback: bool,
pub force: bool,
pub workdir: PathBuf,
pub lock: Option<PathBuf>,
}Fields§
§to: Option<String>Explicit target model(s); only planner is downgrade/upgrade-able here.
all: boolUpgrade every upgradeable role to the latest.
apply: boolPerform the apply (default is plan/dry-run).
rollback: boolRestore harness.lock from harness.lock.prev.
force: boolSkip the evidence gate (apply even if success-rate regresses).
workdir: PathBufWhere .harnesslock/ store + runs live.
lock: Option<PathBuf>The lock to upgrade (default ./harness.lock).
Trait Implementations§
Source§impl Clone for UpgradeSpec
impl Clone for UpgradeSpec
Source§fn clone(&self) -> UpgradeSpec
fn clone(&self) -> UpgradeSpec
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 UpgradeSpec
impl Debug for UpgradeSpec
Source§impl Default for UpgradeSpec
impl Default for UpgradeSpec
Source§fn default() -> UpgradeSpec
fn default() -> UpgradeSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpgradeSpec
impl RefUnwindSafe for UpgradeSpec
impl Send for UpgradeSpec
impl Sync for UpgradeSpec
impl Unpin for UpgradeSpec
impl UnsafeUnpin for UpgradeSpec
impl UnwindSafe for UpgradeSpec
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