pub struct TemporalAuditEntry {
pub entry_id: Uuid,
pub entity_id: Uuid,
pub entity_type: String,
pub version_id: Uuid,
pub action: TemporalAction,
pub timestamp: DateTime<Utc>,
pub user_id: String,
pub reason: Option<String>,
pub previous_value: Option<String>,
pub new_value: Option<String>,
}Expand description
Temporal audit trail entry.
Fields§
§entry_id: UuidEntry ID
entity_id: UuidEntity ID being tracked
entity_type: StringEntity type
version_id: UuidVersion ID
action: TemporalActionAction performed
timestamp: DateTime<Utc>Timestamp
user_id: StringUser who performed the action
reason: Option<String>Reason for the action
previous_value: Option<String>Previous value (serialized)
new_value: Option<String>New value (serialized)
Trait Implementations§
Source§impl Clone for TemporalAuditEntry
impl Clone for TemporalAuditEntry
Source§fn clone(&self) -> TemporalAuditEntry
fn clone(&self) -> TemporalAuditEntry
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 TemporalAuditEntry
impl Debug for TemporalAuditEntry
Source§impl<'de> Deserialize<'de> for TemporalAuditEntry
impl<'de> Deserialize<'de> for TemporalAuditEntry
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 TemporalAuditEntry
impl RefUnwindSafe for TemporalAuditEntry
impl Send for TemporalAuditEntry
impl Sync for TemporalAuditEntry
impl Unpin for TemporalAuditEntry
impl UnwindSafe for TemporalAuditEntry
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