pub struct MutationLogEntry {
pub trace_id: TraceId,
pub step: usize,
pub node_id: NodeId,
pub checkpoint_id: Option<CheckpointId>,
pub mutation_index: usize,
pub mutation: Value,
pub timestamp: SystemTime,
}Expand description
Mutation 日志条目 — 持久化审计记录。
使用 serde_json::Value 存储 mutation 内容,
避免在存储层引入对强类型 Mutation 的依赖。
Fields§
§trace_id: TraceId执行追踪 ID
step: usize步骤序号(从 1 开始)
node_id: NodeId节点标识
checkpoint_id: Option<CheckpointId>关联的 Checkpoint(如果有)
mutation_index: usize步骤内的 mutation 序号
mutation: Value序列化后的 mutation 内容
timestamp: SystemTime记录时间
Implementations§
Trait Implementations§
Source§impl Clone for MutationLogEntry
impl Clone for MutationLogEntry
Source§fn clone(&self) -> MutationLogEntry
fn clone(&self) -> MutationLogEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MutationLogEntry
impl Debug for MutationLogEntry
Source§impl<'de> Deserialize<'de> for MutationLogEntry
impl<'de> Deserialize<'de> for MutationLogEntry
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 MutationLogEntry
impl RefUnwindSafe for MutationLogEntry
impl Send for MutationLogEntry
impl Sync for MutationLogEntry
impl Unpin for MutationLogEntry
impl UnsafeUnpin for MutationLogEntry
impl UnwindSafe for MutationLogEntry
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