1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! A pinned, content-addressed view of a shard's data.
//!
//! A query must read a *consistent* view even as the underlying CRDT keeps
//! converging, so it runs against a **pinned snapshot**: the materialized bytes of
//! a shard at a specific **frontier** (the CRDT state vector), content-addressed
//! so the query's attestation binds to exactly the data it saw.
//!
//! The snapshot bytes are opaque to this crate — how a document materializes into
//! query-readable bytes is the caller's schema choice. A CRDT-native pin is just
//! `Snapshot::pin(doc.encode_full(), doc.state_vector())`.
/// A frozen view of one shard's data at a frontier.