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