pub struct RestoreApplyOperationKindCounts {
pub canister_stops: usize,
pub canister_starts: usize,
pub snapshot_uploads: usize,
pub snapshot_loads: usize,
pub member_verifications: usize,
pub deployment_verifications: usize,
pub verification_operations: usize,
}Expand description
RestoreApplyOperationKindCounts
Serializable operation-kind counter projection for restore apply journals. Owned by restore apply journaling and embedded in dry-run and journal outputs.
Fields§
§canister_stops: usize§canister_starts: usize§snapshot_uploads: usize§snapshot_loads: usize§member_verifications: usize§deployment_verifications: usize§verification_operations: usizeImplementations§
Source§impl RestoreApplyOperationKindCounts
impl RestoreApplyOperationKindCounts
Sourcepub fn from_operations(operations: &[RestoreApplyJournalOperation]) -> Self
pub fn from_operations(operations: &[RestoreApplyJournalOperation]) -> Self
Count restore apply journal operations by runner operation kind.
Sourcepub fn validate_matches(
&self,
expected: &Self,
) -> Result<(), RestoreApplyJournalError>
pub fn validate_matches( &self, expected: &Self, ) -> Result<(), RestoreApplyJournalError>
Validate this count object against concrete operations.
Sourcepub fn from_dry_run_operations(
operations: &[RestoreApplyDryRunOperation],
) -> Self
pub fn from_dry_run_operations( operations: &[RestoreApplyDryRunOperation], ) -> Self
Count restore apply dry-run operations by runner operation kind.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RestoreApplyOperationKindCounts
impl<'de> Deserialize<'de> for RestoreApplyOperationKindCounts
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
impl Eq for RestoreApplyOperationKindCounts
impl StructuralPartialEq for RestoreApplyOperationKindCounts
Auto Trait Implementations§
impl Freeze for RestoreApplyOperationKindCounts
impl RefUnwindSafe for RestoreApplyOperationKindCounts
impl Send for RestoreApplyOperationKindCounts
impl Sync for RestoreApplyOperationKindCounts
impl Unpin for RestoreApplyOperationKindCounts
impl UnsafeUnpin for RestoreApplyOperationKindCounts
impl UnwindSafe for RestoreApplyOperationKindCounts
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