pub struct BackupPlan {Show 15 fields
pub plan_id: String,
pub run_id: String,
pub fleet: String,
pub network: String,
pub root_canister_id: String,
pub selected_subtree_root: Option<String>,
pub selected_scope_kind: BackupScopeKind,
pub include_descendants: bool,
pub root_included: bool,
pub requires_root_controller: bool,
pub snapshot_read_authority: SnapshotReadAuthority,
pub quiescence_policy: QuiescencePolicy,
pub topology_hash_before_quiesce: String,
pub targets: Vec<BackupTarget>,
pub phases: Vec<BackupOperation>,
}Expand description
BackupPlan
Executable backup plan derived from a selected deployment scope. Owned by backup planning and consumed by execution journals and runners.
Fields§
§plan_id: String§run_id: String§fleet: String§network: String§root_canister_id: String§selected_subtree_root: Option<String>§selected_scope_kind: BackupScopeKind§include_descendants: bool§root_included: bool§requires_root_controller: bool§quiescence_policy: QuiescencePolicy§topology_hash_before_quiesce: String§targets: Vec<BackupTarget>§phases: Vec<BackupOperation>Implementations§
Source§impl BackupPlan
impl BackupPlan
Apply proven authority receipts produced by execution preflights.
Apply proven control authority receipts for every selected target.
Apply proven snapshot read authority receipts for every selected target.
Source§impl BackupPlan
impl BackupPlan
Sourcepub fn validate_execution_preflight_receipts(
&self,
topology_receipt: &TopologyPreflightReceipt,
quiescence_receipt: &QuiescencePreflightReceipt,
preflight_id: &str,
as_of: &str,
) -> Result<(), BackupPlanError>
pub fn validate_execution_preflight_receipts( &self, topology_receipt: &TopologyPreflightReceipt, quiescence_receipt: &QuiescencePreflightReceipt, preflight_id: &str, as_of: &str, ) -> Result<(), BackupPlanError>
Validate execution-only preflight receipts before mutation starts.
Sourcepub fn apply_execution_preflight_receipts(
&mut self,
receipts: &BackupExecutionPreflightReceipts,
as_of: &str,
) -> Result<(), BackupPlanError>
pub fn apply_execution_preflight_receipts( &mut self, receipts: &BackupExecutionPreflightReceipts, as_of: &str, ) -> Result<(), BackupPlanError>
Apply and validate the full execution preflight receipt bundle.
Source§impl BackupPlan
impl BackupPlan
Build the typed control-authority preflight request for this plan.
Build the typed snapshot-read preflight request for this plan.
Sourcepub fn topology_preflight_request(&self) -> TopologyPreflightRequest
pub fn topology_preflight_request(&self) -> TopologyPreflightRequest
Build the typed topology preflight request for this plan.
Sourcepub fn quiescence_preflight_request(&self) -> QuiescencePreflightRequest
pub fn quiescence_preflight_request(&self) -> QuiescencePreflightRequest
Build the typed quiescence preflight request for this plan.
Source§impl BackupPlan
impl BackupPlan
Sourcepub fn validate(&self) -> Result<(), BackupPlanError>
pub fn validate(&self) -> Result<(), BackupPlanError>
Validate the backup plan as a dry-run/planning artifact.
Sourcepub fn validate_for_execution(&self) -> Result<(), BackupPlanError>
pub fn validate_for_execution(&self) -> Result<(), BackupPlanError>
Validate the backup plan before any live mutation can run.
Trait Implementations§
Source§impl Clone for BackupPlan
impl Clone for BackupPlan
Source§fn clone(&self) -> BackupPlan
fn clone(&self) -> BackupPlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackupPlan
impl Debug for BackupPlan
Source§impl<'de> Deserialize<'de> for BackupPlan
impl<'de> Deserialize<'de> for BackupPlan
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>,
impl Eq for BackupPlan
Source§impl PartialEq for BackupPlan
impl PartialEq for BackupPlan
Source§fn eq(&self, other: &BackupPlan) -> bool
fn eq(&self, other: &BackupPlan) -> bool
self and other values to be equal, and is used by ==.