pub struct RollbackPlan {
pub apply_id: String,
pub apply_commit: CommitId,
pub restore_from: CommitId,
pub files: Vec<String>,
pub changed_since: Vec<String>,
pub latest: bool,
}Expand description
What a rollback restores.
Fields§
§apply_id: String§apply_commit: CommitIdThe commit that carries the run’s trailer.
restore_from: CommitIdThe commit whose desired state is restored.
files: Vec<String>Store files restored (store-relative).
changed_since: Vec<String>Restored files that commits after the run changed too.
latest: boolWhether the run is this machine’s latest apply run.
Implementations§
Source§impl RollbackPlan
impl RollbackPlan
Sourcepub fn needs_confirmation(&self) -> bool
pub fn needs_confirmation(&self) -> bool
Rolling back an older run over later changes to the same files needs an explicit confirmation; the latest run never asks.
Trait Implementations§
Source§impl Clone for RollbackPlan
impl Clone for RollbackPlan
Auto Trait Implementations§
impl Forget for RollbackPlan
impl Freeze for RollbackPlan
impl Move for RollbackPlan
impl RefUnwindSafe for RollbackPlan
impl Send for RollbackPlanwhere
RawVecInner: Send,
impl Sync for RollbackPlanwhere
RawVecInner: Sync,
impl Unpin for RollbackPlan
impl UnsafeUnpin for RollbackPlanwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for RollbackPlanwhere
RawVecInner: UnwindSafe,
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