email-lib 0.27.0

Cross-platform, asynchronous Rust library to manage emails
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Module dedicated to email folders synchronization reporting.
//!
//! The core structure of this module is the [`FolderSyncReport`].

use super::hunk::{FolderSyncHunk, FoldersName};
use crate::AnyBoxedError;

/// The folder synchronization report.
#[derive(Debug, Default)]
pub struct FolderSyncReport {
    /// The list of folders found during the synchronization process.
    pub names: FoldersName,

    /// The list of processed hunks associated with an optional
    /// error. Hunks that could not be processed are ignored.
    pub patch: Vec<(FolderSyncHunk, Option<AnyBoxedError>)>,
}