substrate-data 0.3.1

One data model, text syntax, binary form, packed frames and schema system — for any program's files, saves and wire messages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! [`Read`]: what reading a document gives.

use super::Found;
use crate::model::value::Ref;

/// What reading a document gives: the value and the references in it.
#[derive(Debug)]
pub struct Read<T> {
    /// The value read.
    pub value: T,
    /// Every reference in it, with where.
    pub refs: Vec<Found<Ref>>,
}