log-analyzer-transient-types 0.1.1

Types shared between crates, and used in serialization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct Field {
    pub name: String,
    pub content: String,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct Document {
    pub fields: std::vec::Vec<Field>,
}