added accessor

This commit is contained in:
Shaun Savage 2018-06-28 16:06:13 +00:00
parent 4a855720e4
commit e81f26e39d

View file

@ -7,7 +7,7 @@ pub struct Fetch {
pub uid: Option<u32>,
pub(crate) rfc822_header: Option<&'static [u8]>,
pub(crate) rfc822: Option<&'static [u8]>,
pub email: Option<&'static [u8]>,
pub(crate) email: Option<&'static [u8]>,
}
impl Fetch {
@ -22,4 +22,8 @@ impl Fetch {
pub fn rfc822<'a>(&'a self) -> Option<&'a [u8]> {
self.rfc822
}
pub fn email<'a>(&'a self) -> Option<&'a [u8]> {
self.email
}
}