ofdb_entities/
address.rs

1#[rustfmt::skip]
2#[derive(Debug, Clone, PartialEq, Eq, Default)]
3pub struct Address {
4    pub street  : Option<String>,
5    pub zip     : Option<String>,
6    pub city    : Option<String>,
7    pub country : Option<String>,
8    pub state   : Option<String>,
9}
10
11impl Address {
12    pub fn is_empty(&self) -> bool {
13        self.street.is_none()
14            && self.zip.is_none()
15            && self.city.is_none()
16            && self.country.is_none()
17            && self.state.is_none()
18    }
19}