sbb_api/models/location.rs
1use core::fmt;
2
3pub enum LocationType {
4 Address,
5 Station
6}
7
8impl fmt::Display for LocationType {
9 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
10 match *self {
11 LocationType::Address=> {
12 write!(f, "a")
13 },
14 LocationType::Station => {
15 write!(f, "s")
16 }
17 }
18 }
19}