abs_data/models/derived/data.rs
1use std::collections::HashMap;
2
3use super::{annotation::Annotation, data_point::DataPoint};
4use serde::{Deserialize, Serialize};
5
6#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct Data {
9 pub attributes: Box<[Option<i64>]>,
10 pub annotations: Box<[Annotation]>,
11 pub observations: HashMap<Box<str>, Box<[Option<DataPoint>]>>,
12}