pub struct ArtifactJournalEntry {
pub canister_id: String,
pub snapshot_id: String,
pub state: ArtifactState,
pub temp_path: Option<String>,
pub artifact_path: String,
pub checksum_algorithm: String,
pub checksum: Option<String>,
pub updated_at: String,
}Expand description
ArtifactJournalEntry
Fields§
§canister_id: String§snapshot_id: String§state: ArtifactState§temp_path: Option<String>§artifact_path: String§checksum_algorithm: String§checksum: Option<String>§updated_at: StringImplementations§
Source§impl ArtifactJournalEntry
impl ArtifactJournalEntry
Sourcepub const fn resume_action(&self) -> ResumeAction
pub const fn resume_action(&self) -> ResumeAction
Return the idempotent action needed to resume this artifact.
Sourcepub fn advance_to(
&mut self,
next_state: ArtifactState,
updated_at: String,
) -> Result<(), JournalValidationError>
pub fn advance_to( &mut self, next_state: ArtifactState, updated_at: String, ) -> Result<(), JournalValidationError>
Advance this artifact to a later journal state.
Trait Implementations§
Source§impl Clone for ArtifactJournalEntry
impl Clone for ArtifactJournalEntry
Source§fn clone(&self) -> ArtifactJournalEntry
fn clone(&self) -> ArtifactJournalEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ArtifactJournalEntry
impl Debug for ArtifactJournalEntry
Source§impl<'de> Deserialize<'de> for ArtifactJournalEntry
impl<'de> Deserialize<'de> for ArtifactJournalEntry
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
Auto Trait Implementations§
impl Freeze for ArtifactJournalEntry
impl RefUnwindSafe for ArtifactJournalEntry
impl Send for ArtifactJournalEntry
impl Sync for ArtifactJournalEntry
impl Unpin for ArtifactJournalEntry
impl UnsafeUnpin for ArtifactJournalEntry
impl UnwindSafe for ArtifactJournalEntry
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