pub struct FailureRecord {
pub timestamp: DateTime<Utc>,
pub error: String,
pub attempt: usize,
pub element_id: Option<String>,
pub action: String,
}Expand description
Record of a failure event.
Fields§
§timestamp: DateTime<Utc>Timestamp of failure
error: StringError message
attempt: usizeRetry attempt number
element_id: Option<String>Element that failed (if available)
action: StringRecovery action taken
Implementations§
Source§impl FailureRecord
impl FailureRecord
Sourcepub fn with_element_id(self, id: String) -> Self
pub fn with_element_id(self, id: String) -> Self
Set the element ID.
Sourcepub fn with_action(self, action: String) -> Self
pub fn with_action(self, action: String) -> Self
Set the recovery action.
Trait Implementations§
Source§impl Clone for FailureRecord
impl Clone for FailureRecord
Source§fn clone(&self) -> FailureRecord
fn clone(&self) -> FailureRecord
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 FailureRecord
impl Debug for FailureRecord
Source§impl<'de> Deserialize<'de> for FailureRecord
impl<'de> Deserialize<'de> for FailureRecord
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 FailureRecord
impl RefUnwindSafe for FailureRecord
impl Send for FailureRecord
impl Sync for FailureRecord
impl Unpin for FailureRecord
impl UnsafeUnpin for FailureRecord
impl UnwindSafe for FailureRecord
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