Add more documentation

This commit is contained in:
link2xt
2023-02-13 17:09:58 +00:00
parent 7d2cca8633
commit ae19c9b331
20 changed files with 317 additions and 47 deletions

View File

@@ -1,7 +1,5 @@
//! Internet Message Format reception pipeline.
#![allow(missing_docs)]
use std::cmp::min;
use std::collections::HashSet;
use std::convert::TryFrom;
@@ -48,8 +46,13 @@ use crate::{contact, imap};
/// all have the same chat_id, state and sort_timestamp.
#[derive(Debug)]
pub struct ReceivedMsg {
/// Chat the message is assigned to.
pub chat_id: ChatId,
/// Received message state.
pub state: MessageState,
/// Message timestamp for sorting.
pub sort_timestamp: i64,
/// IDs of inserted rows in messages table.