zugferd_code_lists/
lib.rs

1pub mod zugferd_2_3_2;
2pub mod zugferd_2_3_3;
3
4pub trait Code {
5    fn code(&self) -> &str;
6}
7
8pub trait Description {
9    fn description(&self) -> &str;
10}
11
12pub trait FromCode {
13    fn from_code(code: &str) -> Option<Self>
14    where
15        Self: Sized;
16}
17
18#[cfg(test)]
19mod test {
20    // check that pub rules are correctly applied
21    #[allow(unused_imports)]
22    use crate::zugferd_2_3_2::Country::Germany as Germany232;
23
24    #[allow(unused_imports)]
25    use crate::zugferd_2_3_3::Country::Germany as Germany233;
26}