pub struct EventDetail {
pub event_id: i64,
pub session_id: String,
pub event_type: String,
pub payload: Value,
pub redacted_text: Option<String>,
pub prev_hash: String,
pub event_hash: String,
pub created_at: i64,
}Expand description
单条事件的完整 payload(从 events 表直读,payload 已 JCS 规范化 + 脱敏)。
Fields§
§event_id: i64event_id
session_id: Stringsession
event_type: Stringtype
payload: Value完整 payload JSON(已脱敏)
redacted_text: Option<String>FTS 摘要
prev_hash: Stringhash chain:前 hash
event_hash: Stringhash chain:本事件 hash
created_at: i64创建时间
Trait Implementations§
Source§impl Clone for EventDetail
impl Clone for EventDetail
Source§fn clone(&self) -> EventDetail
fn clone(&self) -> EventDetail
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 EventDetail
impl Debug for EventDetail
Source§impl<'de> Deserialize<'de> for EventDetail
impl<'de> Deserialize<'de> for EventDetail
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 EventDetail
impl RefUnwindSafe for EventDetail
impl Send for EventDetail
impl Sync for EventDetail
impl Unpin for EventDetail
impl UnsafeUnpin for EventDetail
impl UnwindSafe for EventDetail
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