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
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
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.
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.
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
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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BackupPlan
impl PartialEq for BackupPlan
Source§fn eq(&self, other: &BackupPlan) -> bool
fn eq(&self, other: &BackupPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BackupPlan
impl Serialize for BackupPlan
impl Eq for BackupPlan
impl StructuralPartialEq for BackupPlan
Auto Trait Implementations§
impl Freeze for BackupPlan
impl RefUnwindSafe for BackupPlan
impl Send for BackupPlan
impl Sync for BackupPlan
impl Unpin for BackupPlan
impl UnsafeUnpin for BackupPlan
impl UnwindSafe for BackupPlan
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