1use serde::{Deserialize, Serialize};
2
3use crate::{FunctionalGroupHeader, FunctionalGroupTrailer, InterchangeControlHeader, InterchangeControlTrailer};
4
5#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
6pub struct Document<T> {
7 pub interchange_control_header: InterchangeControlHeader,
9 pub functional_group_header: FunctionalGroupHeader,
11 pub transactions: Vec<T>,
13 pub functional_group_trailer: FunctionalGroupTrailer,
15 pub interchange_control_trailer: InterchangeControlTrailer,
17}