pub struct SensitiveSnapshot(/* private fields */);Expand description
Serializable snapshot of a Session’s token manifest.
Produced by Session::export and consumed by Session::import. Carries the full
token-to-PII mapping plus a session signing key - treat it as sensitive as the original
document.
Storage: the snapshot is delivered as raw bytes via Self::into_bytes and reconstructed
via SensitiveSnapshot::from(Vec<u8>). There is no Serialize/Deserialize impl - bytes are
the wire format. Encrypt at rest, bind to a conversation/user, enforce a TTL.
Must not: send to the LLM, analytics, browser clients, logs, or support tickets.
The audit log (gaze-audit) is not a restore source; only this snapshot can reconstruct
original PII values.
Implementations§
Source§impl SensitiveSnapshot
impl SensitiveSnapshot
pub fn into_bytes(self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for SensitiveSnapshot
impl Clone for SensitiveSnapshot
Source§fn clone(&self) -> SensitiveSnapshot
fn clone(&self) -> SensitiveSnapshot
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 SensitiveSnapshot
impl Debug for SensitiveSnapshot
Auto Trait Implementations§
impl Freeze for SensitiveSnapshot
impl RefUnwindSafe for SensitiveSnapshot
impl Send for SensitiveSnapshot
impl Sync for SensitiveSnapshot
impl Unpin for SensitiveSnapshot
impl UnsafeUnpin for SensitiveSnapshot
impl UnwindSafe for SensitiveSnapshot
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