added accessor
This commit is contained in:
parent
4a855720e4
commit
e81f26e39d
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ pub struct Fetch {
|
||||||
pub uid: Option<u32>,
|
pub uid: Option<u32>,
|
||||||
pub(crate) rfc822_header: Option<&'static [u8]>,
|
pub(crate) rfc822_header: Option<&'static [u8]>,
|
||||||
pub(crate) rfc822: Option<&'static [u8]>,
|
pub(crate) rfc822: Option<&'static [u8]>,
|
||||||
pub email: Option<&'static [u8]>,
|
pub(crate) email: Option<&'static [u8]>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Fetch {
|
impl Fetch {
|
||||||
|
|
@ -22,4 +22,8 @@ impl Fetch {
|
||||||
pub fn rfc822<'a>(&'a self) -> Option<&'a [u8]> {
|
pub fn rfc822<'a>(&'a self) -> Option<&'a [u8]> {
|
||||||
self.rfc822
|
self.rfc822
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn email<'a>(&'a self) -> Option<&'a [u8]> {
|
||||||
|
self.email
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue