padmet/relation.rs
1
2use std::collections::HashMap;
3
4
5#[derive(Debug, Clone)]
6pub struct Relation {
7 pub id_in: String,
8 pub id_out: String,
9 pub relation_type: String,
10 pub misc: HashMap<String, Vec<String>>
11}
12
13impl Relation {
14 pub fn new(id_in: String, id_out: String, relation_type: String, misc: HashMap<String, Vec<String>>) -> Self {
15 Relation {
16 id_in,
17 id_out,
18 relation_type,
19 misc
20 }
21 }
22}