Make all MimeFactory fields private

This commit is contained in:
Alexander Krotov
2020-01-08 19:18:41 +03:00
parent 2ddeef761f
commit 67d85f0f86

View File

@@ -27,20 +27,20 @@ pub enum Loaded {
/// Helper to construct mime messages. /// Helper to construct mime messages.
#[derive(Clone)] #[derive(Clone)]
pub struct MimeFactory<'a, 'b> { pub struct MimeFactory<'a, 'b> {
pub from_addr: String, from_addr: String,
pub from_displayname: String, from_displayname: String,
pub selfstatus: String, selfstatus: String,
pub recipients_names: Vec<String>, recipients_names: Vec<String>,
pub recipients_addr: Vec<String>, recipients_addr: Vec<String>,
pub timestamp: i64, timestamp: i64,
pub loaded: Loaded, loaded: Loaded,
pub msg: &'b Message, msg: &'b Message,
pub chat: Option<Chat>, chat: Option<Chat>,
pub increation: bool, increation: bool,
pub in_reply_to: String, in_reply_to: String,
pub references: String, references: String,
pub req_mdn: bool, req_mdn: bool,
pub context: &'a Context, context: &'a Context,
last_added_location_id: u32, last_added_location_id: u32,
attach_selfavatar: bool, attach_selfavatar: bool,
} }