pub fn collect_deterministic_snapshot_bytes(
snapshot: &NormalizedFingerprintSnapshot,
options: &SnapshotDeterminismOptions,
) -> Result<Vec<u8>, SnapshotCollectionError>Expand description
Serialize a snapshot into deterministic JSON bytes.
The function first validates snapshot compatibility, then applies
deterministic normalization rules, and finally serializes with a stable
field order (provided by struct declaration order + BTreeMap keys).
ยงErrors
Returns SnapshotCollectionError when snapshot compatibility validation
fails or when JSON serialization fails.