pub struct RestoreApplyOperationReceipt {Show 15 fields
pub sequence: usize,
pub operation: RestoreApplyOperationKind,
pub outcome: RestoreApplyOperationReceiptOutcome,
pub source_canister: String,
pub target_canister: String,
pub attempt: usize,
pub updated_at: Option<String>,
pub command: Option<RestoreApplyRunnerCommand>,
pub status: Option<String>,
pub stdout: Option<RestoreApplyCommandOutput>,
pub stderr: Option<RestoreApplyCommandOutput>,
pub failure_reason: Option<String>,
pub source_snapshot_id: Option<String>,
pub artifact_path: Option<String>,
pub uploaded_snapshot_id: Option<String>,
}Expand description
RestoreApplyOperationReceipt
Fields§
§sequence: usize§operation: RestoreApplyOperationKind§outcome: RestoreApplyOperationReceiptOutcome§source_canister: String§target_canister: String§attempt: usize§updated_at: Option<String>§command: Option<RestoreApplyRunnerCommand>§status: Option<String>§stdout: Option<RestoreApplyCommandOutput>§stderr: Option<RestoreApplyCommandOutput>§failure_reason: Option<String>§source_snapshot_id: Option<String>§artifact_path: Option<String>§uploaded_snapshot_id: Option<String>Implementations§
Source§impl RestoreApplyOperationReceipt
impl RestoreApplyOperationReceipt
Sourcepub fn completed_upload(
operation: &RestoreApplyJournalOperation,
uploaded_snapshot_id: String,
) -> Self
pub fn completed_upload( operation: &RestoreApplyJournalOperation, uploaded_snapshot_id: String, ) -> Self
Build a completed upload receipt from the uploaded target-side snapshot ID.
Sourcepub fn command_completed(
operation: &RestoreApplyJournalOperation,
command: RestoreApplyRunnerCommand,
status: String,
updated_at: Option<String>,
output: RestoreApplyCommandOutputPair,
attempt: usize,
uploaded_snapshot_id: Option<String>,
) -> Self
pub fn command_completed( operation: &RestoreApplyJournalOperation, command: RestoreApplyRunnerCommand, status: String, updated_at: Option<String>, output: RestoreApplyCommandOutputPair, attempt: usize, uploaded_snapshot_id: Option<String>, ) -> Self
Build a durable completed-command receipt for the apply journal.
Sourcepub fn command_failed(
operation: &RestoreApplyJournalOperation,
command: RestoreApplyRunnerCommand,
status: String,
updated_at: Option<String>,
output: RestoreApplyCommandOutputPair,
attempt: usize,
failure_reason: String,
) -> Self
pub fn command_failed( operation: &RestoreApplyJournalOperation, command: RestoreApplyRunnerCommand, status: String, updated_at: Option<String>, output: RestoreApplyCommandOutputPair, attempt: usize, failure_reason: String, ) -> Self
Build a durable failed-command receipt for the apply journal.
Trait Implementations§
Source§impl Clone for RestoreApplyOperationReceipt
impl Clone for RestoreApplyOperationReceipt
Source§fn clone(&self) -> RestoreApplyOperationReceipt
fn clone(&self) -> RestoreApplyOperationReceipt
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 RestoreApplyOperationReceipt
impl Debug for RestoreApplyOperationReceipt
Source§impl<'de> Deserialize<'de> for RestoreApplyOperationReceipt
impl<'de> Deserialize<'de> for RestoreApplyOperationReceipt
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 RestoreApplyOperationReceipt
impl PartialEq for RestoreApplyOperationReceipt
Source§fn eq(&self, other: &RestoreApplyOperationReceipt) -> bool
fn eq(&self, other: &RestoreApplyOperationReceipt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RestoreApplyOperationReceipt
impl StructuralPartialEq for RestoreApplyOperationReceipt
Auto Trait Implementations§
impl Freeze for RestoreApplyOperationReceipt
impl RefUnwindSafe for RestoreApplyOperationReceipt
impl Send for RestoreApplyOperationReceipt
impl Sync for RestoreApplyOperationReceipt
impl Unpin for RestoreApplyOperationReceipt
impl UnsafeUnpin for RestoreApplyOperationReceipt
impl UnwindSafe for RestoreApplyOperationReceipt
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