pub struct SyncReport {
pub task_id: String,
pub start_time: DateTime<Utc>,
pub end_time: Option<DateTime<Utc>>,
pub status: SyncStatus,
pub statistics: SyncStatistics,
pub files: Vec<FileSyncResult>,
pub errors: Vec<String>,
pub warnings: Vec<String>,
pub duration_seconds: i64,
}Fields§
§task_id: String§start_time: DateTime<Utc>§end_time: Option<DateTime<Utc>>§status: SyncStatus§statistics: SyncStatistics§files: Vec<FileSyncResult>§errors: Vec<String>§warnings: Vec<String>§duration_seconds: i64Implementations§
Source§impl SyncReport
impl SyncReport
pub fn new(task_id: &str) -> SyncReport
pub fn generate_html(&self) -> String
pub fn summary(&self) -> String
pub fn generate_json(&self) -> String
pub fn save(&self)
Trait Implementations§
Source§impl Debug for SyncReport
impl Debug for SyncReport
Source§impl<'de> Deserialize<'de> for SyncReport
impl<'de> Deserialize<'de> for SyncReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SyncReport
impl RefUnwindSafe for SyncReport
impl Send for SyncReport
impl Sync for SyncReport
impl Unpin for SyncReport
impl UnwindSafe for SyncReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more