email/folder/sync/
report.rs

1//! Module dedicated to email folders synchronization reporting.
2//!
3//! The core structure of this module is the [`FolderSyncReport`].
4
5use super::hunk::{FolderSyncHunk, FoldersName};
6use crate::AnyBoxedError;
7
8/// The folder synchronization report.
9#[derive(Debug, Default)]
10pub struct FolderSyncReport {
11    /// The list of folders found during the synchronization process.
12    pub names: FoldersName,
13
14    /// The list of processed hunks associated with an optional
15    /// error. Hunks that could not be processed are ignored.
16    pub patch: Vec<(FolderSyncHunk, Option<AnyBoxedError>)>,
17}