pub struct RestoreApplyJournal {Show 14 fields
pub journal_version: u16,
pub backup_id: String,
pub ready: bool,
pub blocked_reasons: Vec<String>,
pub backup_root: Option<String>,
pub operation_count: usize,
pub operation_counts: RestoreApplyOperationKindCounts,
pub pending_operations: usize,
pub ready_operations: usize,
pub blocked_operations: usize,
pub completed_operations: usize,
pub failed_operations: usize,
pub operations: Vec<RestoreApplyJournalOperation>,
pub operation_receipts: Vec<RestoreApplyOperationReceipt>,
}Expand description
RestoreApplyJournal
Fields§
§journal_version: u16§backup_id: String§ready: bool§blocked_reasons: Vec<String>§backup_root: Option<String>§operation_count: usize§operation_counts: RestoreApplyOperationKindCounts§pending_operations: usize§ready_operations: usize§blocked_operations: usize§completed_operations: usize§failed_operations: usize§operations: Vec<RestoreApplyJournalOperation>§operation_receipts: Vec<RestoreApplyOperationReceipt>Implementations§
Source§impl RestoreApplyJournal
impl RestoreApplyJournal
Sourcepub fn from_dry_run(dry_run: &RestoreApplyDryRun) -> Self
pub fn from_dry_run(dry_run: &RestoreApplyDryRun) -> Self
Build the initial no-mutation restore apply journal from a dry-run.
Sourcepub fn validate(&self) -> Result<(), RestoreApplyJournalError>
pub fn validate(&self) -> Result<(), RestoreApplyJournalError>
Validate the structural consistency of a restore apply journal.
Sourcepub fn next_command_preview(&self) -> RestoreApplyCommandPreview
pub fn next_command_preview(&self) -> RestoreApplyCommandPreview
Render the next transitionable operation as a no-execute command preview.
Sourcepub fn mark_next_operation_pending_at(
&mut self,
updated_at: Option<String>,
) -> Result<(), RestoreApplyJournalError>
pub fn mark_next_operation_pending_at( &mut self, updated_at: Option<String>, ) -> Result<(), RestoreApplyJournalError>
Mark the next transitionable operation pending with an update marker.
Sourcepub fn retry_failed_operation_at(
&mut self,
sequence: usize,
updated_at: Option<String>,
) -> Result<(), RestoreApplyJournalError>
pub fn retry_failed_operation_at( &mut self, sequence: usize, updated_at: Option<String>, ) -> Result<(), RestoreApplyJournalError>
Retry one failed restore apply operation by moving it back to ready.
Trait Implementations§
Source§impl Clone for RestoreApplyJournal
impl Clone for RestoreApplyJournal
Source§fn clone(&self) -> RestoreApplyJournal
fn clone(&self) -> RestoreApplyJournal
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 RestoreApplyJournal
impl Debug for RestoreApplyJournal
Source§impl<'de> Deserialize<'de> for RestoreApplyJournal
impl<'de> Deserialize<'de> for RestoreApplyJournal
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 RestoreApplyJournal
impl PartialEq for RestoreApplyJournal
Source§fn eq(&self, other: &RestoreApplyJournal) -> bool
fn eq(&self, other: &RestoreApplyJournal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RestoreApplyJournal
impl Serialize for RestoreApplyJournal
impl Eq for RestoreApplyJournal
impl StructuralPartialEq for RestoreApplyJournal
Auto Trait Implementations§
impl Freeze for RestoreApplyJournal
impl RefUnwindSafe for RestoreApplyJournal
impl Send for RestoreApplyJournal
impl Sync for RestoreApplyJournal
impl Unpin for RestoreApplyJournal
impl UnsafeUnpin for RestoreApplyJournal
impl UnwindSafe for RestoreApplyJournal
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