1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use super::entries::prelude::*;
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Entry {
Root(Root),
Object(Object),
Property(Property)
}
impl Entry {
pub fn dbg(&self) -> String {
match self {
Self::Root(obj) => obj.dbg(),
Self::Object(obj) => obj.dbg(),
Self::Property(obj) => obj.dbg()
}
}
pub fn get_xml(&self) -> String {
match self {
Self::Root(obj) => obj.get_xml(),
Self::Object(obj) => obj.get_xml(),
Self::Property(obj) => obj.get_xml()
}
}
}