mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
Add more documentation
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
//! # MIME message parsing module.
|
||||
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::future::Future;
|
||||
use std::pin::Pin;
|
||||
@@ -130,11 +128,13 @@ pub(crate) enum MailinglistType {
|
||||
None,
|
||||
}
|
||||
|
||||
/// System message type.
|
||||
#[derive(
|
||||
Debug, Default, Display, Clone, Copy, PartialEq, Eq, FromPrimitive, ToPrimitive, ToSql, FromSql,
|
||||
)]
|
||||
#[repr(u32)]
|
||||
pub enum SystemMessage {
|
||||
/// Unknown type of system message.
|
||||
#[default]
|
||||
Unknown = 0,
|
||||
|
||||
@@ -152,8 +152,14 @@ pub enum SystemMessage {
|
||||
|
||||
/// Autocrypt Setup Message.
|
||||
AutocryptSetupMessage = 6,
|
||||
|
||||
/// Secure-join message.
|
||||
SecurejoinMessage = 7,
|
||||
|
||||
/// Location streaming is enabled.
|
||||
LocationStreamingEnabled = 8,
|
||||
|
||||
/// Location-only message.
|
||||
LocationOnly = 9,
|
||||
|
||||
/// Chat ephemeral message timer is changed.
|
||||
@@ -1792,6 +1798,8 @@ pub struct Part {
|
||||
|
||||
/// Size of the MIME part in bytes.
|
||||
pub bytes: usize,
|
||||
|
||||
/// Parameters.
|
||||
pub param: Params,
|
||||
|
||||
/// Attachment filename.
|
||||
|
||||
Reference in New Issue
Block a user