make the progressview public

This commit is contained in:
Tamo 2024-12-11 18:15:33 +01:00
parent fa885e75b4
commit 45d5d4bf40
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -141,14 +141,16 @@ make_atomic_progress!(Document alias AtomicDocumentStep => "document" );
make_atomic_progress!(Payload alias AtomicPayloadStep => "payload" );
#[derive(Debug, Serialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct ProgressView {
steps: Vec<ProgressStepView>,
percentage: f32,
pub steps: Vec<ProgressStepView>,
pub percentage: f32,
}
#[derive(Debug, Serialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct ProgressStepView {
name: Cow<'static, str>,
finished: u32,
total: u32,
pub name: Cow<'static, str>,
pub finished: u32,
pub total: u32,
}