pub struct HistoryEntry {
pub id: Uuid,
pub operation: HistoryOperation,
pub timestamp: DateTime<Utc>,
pub success: bool,
pub reversible: bool,
pub undo_data: Option<UndoData>,
pub error: Option<String>,
}Expand description
Entry in the history log.
Fields§
§id: UuidUnique identifier for this operation
operation: HistoryOperationType of operation
timestamp: DateTime<Utc>When the operation occurred
success: boolWhether the operation succeeded
reversible: boolWhether this operation can be undone
undo_data: Option<UndoData>Data needed to undo this operation
error: Option<String>Error message if the operation failed
Trait Implementations§
Source§impl Clone for HistoryEntry
impl Clone for HistoryEntry
Source§fn clone(&self) -> HistoryEntry
fn clone(&self) -> HistoryEntry
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 HistoryEntry
impl Debug for HistoryEntry
Source§impl<'de> Deserialize<'de> for HistoryEntry
impl<'de> Deserialize<'de> for HistoryEntry
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 HistoryEntry
impl RefUnwindSafe for HistoryEntry
impl Send for HistoryEntry
impl Sync for HistoryEntry
impl Unpin for HistoryEntry
impl UnwindSafe for HistoryEntry
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