pub struct SnapshotAttemptHistoryEntry {
pub attempt_id: AttemptId,
pub started_at: u64,
pub finished_at: Option<u64>,
pub result: Option<AttemptResultKind>,
pub error: Option<String>,
pub output: Option<Vec<u8>>,
}Expand description
Snapshot representation of an attempt history entry.
Fields§
§attempt_id: AttemptIdThe attempt identifier.
started_at: u64The timestamp when the attempt started.
finished_at: Option<u64>The timestamp when the attempt finished, if finished.
result: Option<AttemptResultKind>Canonical attempt result taxonomy, if finished.
error: Option<String>Optional error message when the attempt failed.
output: Option<Vec<u8>>Optional opaque output bytes produced by the handler on success.
Trait Implementations§
Source§impl Clone for SnapshotAttemptHistoryEntry
impl Clone for SnapshotAttemptHistoryEntry
Source§fn clone(&self) -> SnapshotAttemptHistoryEntry
fn clone(&self) -> SnapshotAttemptHistoryEntry
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 SnapshotAttemptHistoryEntry
impl Debug for SnapshotAttemptHistoryEntry
Source§impl<'de> Deserialize<'de> for SnapshotAttemptHistoryEntry
impl<'de> Deserialize<'de> for SnapshotAttemptHistoryEntry
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 From<AttemptHistoryEntry> for SnapshotAttemptHistoryEntry
impl From<AttemptHistoryEntry> for SnapshotAttemptHistoryEntry
Source§fn from(entry: AttemptHistoryEntry) -> Self
fn from(entry: AttemptHistoryEntry) -> Self
Converts to this type from the input type.
impl Eq for SnapshotAttemptHistoryEntry
impl StructuralPartialEq for SnapshotAttemptHistoryEntry
Auto Trait Implementations§
impl Freeze for SnapshotAttemptHistoryEntry
impl RefUnwindSafe for SnapshotAttemptHistoryEntry
impl Send for SnapshotAttemptHistoryEntry
impl Sync for SnapshotAttemptHistoryEntry
impl Unpin for SnapshotAttemptHistoryEntry
impl UnsafeUnpin for SnapshotAttemptHistoryEntry
impl UnwindSafe for SnapshotAttemptHistoryEntry
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