pub struct RestoreApplyDryRun {Show 13 fields
pub dry_run_version: u16,
pub backup_id: String,
pub ready: bool,
pub readiness_reasons: Vec<String>,
pub member_count: usize,
pub phase_count: usize,
pub status_supplied: bool,
pub planned_snapshot_loads: usize,
pub planned_code_reinstalls: usize,
pub planned_verification_checks: usize,
pub rendered_operations: usize,
pub artifact_validation: Option<RestoreApplyArtifactValidation>,
pub phases: Vec<RestoreApplyDryRunPhase>,
}Expand description
RestoreApplyDryRun
Fields§
§dry_run_version: u16§backup_id: String§ready: bool§readiness_reasons: Vec<String>§member_count: usize§phase_count: usize§status_supplied: bool§planned_snapshot_loads: usize§planned_code_reinstalls: usize§planned_verification_checks: usize§rendered_operations: usize§artifact_validation: Option<RestoreApplyArtifactValidation>§phases: Vec<RestoreApplyDryRunPhase>Implementations§
Source§impl RestoreApplyDryRun
impl RestoreApplyDryRun
Sourcepub fn try_from_plan(
plan: &RestorePlan,
status: Option<&RestoreStatus>,
) -> Result<Self, RestoreApplyDryRunError>
pub fn try_from_plan( plan: &RestorePlan, status: Option<&RestoreStatus>, ) -> Result<Self, RestoreApplyDryRunError>
Build a no-mutation apply dry-run after validating optional status identity.
Sourcepub fn try_from_plan_with_artifacts(
plan: &RestorePlan,
status: Option<&RestoreStatus>,
backup_root: &Path,
) -> Result<Self, RestoreApplyDryRunError>
pub fn try_from_plan_with_artifacts( plan: &RestorePlan, status: Option<&RestoreStatus>, backup_root: &Path, ) -> Result<Self, RestoreApplyDryRunError>
Build an apply dry-run and verify all referenced artifacts under a backup root.
Trait Implementations§
Source§impl Clone for RestoreApplyDryRun
impl Clone for RestoreApplyDryRun
Source§fn clone(&self) -> RestoreApplyDryRun
fn clone(&self) -> RestoreApplyDryRun
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 moreSource§impl Debug for RestoreApplyDryRun
impl Debug for RestoreApplyDryRun
Source§impl<'de> Deserialize<'de> for RestoreApplyDryRun
impl<'de> Deserialize<'de> for RestoreApplyDryRun
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RestoreApplyDryRun
impl PartialEq for RestoreApplyDryRun
Source§impl Serialize for RestoreApplyDryRun
impl Serialize for RestoreApplyDryRun
impl Eq for RestoreApplyDryRun
impl StructuralPartialEq for RestoreApplyDryRun
Auto Trait Implementations§
impl Freeze for RestoreApplyDryRun
impl RefUnwindSafe for RestoreApplyDryRun
impl Send for RestoreApplyDryRun
impl Sync for RestoreApplyDryRun
impl Unpin for RestoreApplyDryRun
impl UnsafeUnpin for RestoreApplyDryRun
impl UnwindSafe for RestoreApplyDryRun
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