aboutsummaryrefslogtreecommitdiff
path: root/import/src/reporting.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-12-11 01:20:17 +0100
committermetamuffin <metamuffin@disroot.org>2025-12-11 01:20:17 +0100
commit6e5f6d9b9c6fedb4ab80190c156595d321d33bbf (patch)
treeb6c2140e744fc3018ad08975afefad40386ebbc6 /import/src/reporting.rs
parente4f865e9da9d6660399e22a6fbeb5b84a749b07a (diff)
downloadjellything-6e5f6d9b9c6fedb4ab80190c156595d321d33bbf.tar
jellything-6e5f6d9b9c6fedb4ab80190c156595d321d33bbf.tar.bz2
jellything-6e5f6d9b9c6fedb4ab80190c156595d321d33bbf.tar.zst
refactor import plugins part 3
Diffstat (limited to 'import/src/reporting.rs')
-rw-r--r--import/src/reporting.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/import/src/reporting.rs b/import/src/reporting.rs
index 3105b59..92f38be 100644
--- a/import/src/reporting.rs
+++ b/import/src/reporting.rs
@@ -6,11 +6,13 @@
use anyhow::Result;
use rayon::{current_num_threads, current_thread_index};
+use serde::Serialize;
use tokio::sync::RwLock;
pub static IMPORT_ERRORS: RwLock<Vec<String>> = RwLock::const_new(Vec::new());
pub static IMPORT_PROGRESS: RwLock<Option<ImportProgress>> = RwLock::const_new(None);
+#[derive(Debug, Serialize, Clone)]
pub struct ImportProgress {
pub total_items: usize,
pub finished_items: usize,