resume_generator/
email.rs

1crate::ix!();
2
3#[derive(Debug)]
4pub struct Email(String);
5
6impl Email {
7    pub fn new(email: String) -> Self {
8        Self(email)
9    }
10
11    pub fn address(&self) -> &str {
12        &self.0
13    }
14}
15
16impl fmt::Display for Email {
17    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
18        write!(f, "{}", self.0)
19    }
20}