pub struct SignedRow {
pub event: Event,
pub signature: Option<RowSignature>,
}Expand description
On-disk envelope for one JSONL row.
#[serde(flatten)] on event keeps every existing top-level field
where legacy tooling expects it; signature is a single new optional
field. See module docs for the wire shape.
Fields§
§event: EventThe semantic event payload (id, hashes, prev_event_hash, …). Its fields are flattened to the top level by serde so the on-disk row shape remains a superset of pre-3.D.6 rows.
signature: Option<RowSignature>Optional row signature. None only on rows written via the legacy
unsigned JsonlLog::append path (kept for tests of unrelated
crate features). A None signature always fails verify with
crate::audit::FailureReason::MissingSignature.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SignedRow
impl<'de> Deserialize<'de> for SignedRow
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
impl Eq for SignedRow
impl StructuralPartialEq for SignedRow
Auto Trait Implementations§
impl Freeze for SignedRow
impl RefUnwindSafe for SignedRow
impl Send for SignedRow
impl Sync for SignedRow
impl Unpin for SignedRow
impl UnsafeUnpin for SignedRow
impl UnwindSafe for SignedRow
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