pub struct EmailStore {
pub emails: Vec<EmailInfo>,
pub subject_list: Option<Box<Header>>,
pub author_list: Option<Box<Header>>,
pub date_list: Option<Box<Header>>,
pub msgid_table: HashMap<String, usize>,
pub msgnum_table: HashMap<i32, usize>,
pub threadlist: Vec<Reply>,
pub threadlist_by_msgnum: Vec<Option<usize>>,
pub replylist: Vec<Reply>,
pub max_msgnum: i32,
}Fields§
§emails: Vec<EmailInfo>§subject_list: Option<Box<Header>>§date_list: Option<Box<Header>>§msgid_table: HashMap<String, usize>§msgnum_table: HashMap<i32, usize>§threadlist: Vec<Reply>§threadlist_by_msgnum: Vec<Option<usize>>§replylist: Vec<Reply>§max_msgnum: i32Implementations§
Source§impl EmailStore
impl EmailStore
pub fn new() -> Self
pub fn reinit(&mut self)
pub fn find_by_msgid(&self, msgid: &str) -> Option<usize>
pub fn find_by_msgnum(&self, msgnum: i32) -> Option<usize>
pub fn add_email(&mut self, email: EmailInfo) -> usize
pub fn insert_into_subject_list(&mut self, idx: usize)
pub fn insert_into_date_list(&mut self, idx: usize)
pub fn traverse_date_list(&self) -> Vec<usize>
pub fn traverse_subject_list(&self) -> Vec<usize>
Trait Implementations§
Source§impl Clone for EmailStore
impl Clone for EmailStore
Source§fn clone(&self) -> EmailStore
fn clone(&self) -> EmailStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmailStore
impl Debug for EmailStore
Auto Trait Implementations§
impl Freeze for EmailStore
impl RefUnwindSafe for EmailStore
impl Send for EmailStore
impl Sync for EmailStore
impl Unpin for EmailStore
impl UnsafeUnpin for EmailStore
impl UnwindSafe for EmailStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more