mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-12 22:37:29 +01:00
make the progressview public
This commit is contained in:
parent
fa885e75b4
commit
45d5d4bf40
@ -141,14 +141,16 @@ make_atomic_progress!(Document alias AtomicDocumentStep => "document" );
|
|||||||
make_atomic_progress!(Payload alias AtomicPayloadStep => "payload" );
|
make_atomic_progress!(Payload alias AtomicPayloadStep => "payload" );
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Clone)]
|
#[derive(Debug, Serialize, Clone)]
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct ProgressView {
|
pub struct ProgressView {
|
||||||
steps: Vec<ProgressStepView>,
|
pub steps: Vec<ProgressStepView>,
|
||||||
percentage: f32,
|
pub percentage: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Clone)]
|
#[derive(Debug, Serialize, Clone)]
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct ProgressStepView {
|
pub struct ProgressStepView {
|
||||||
name: Cow<'static, str>,
|
pub name: Cow<'static, str>,
|
||||||
finished: u32,
|
pub finished: u32,
|
||||||
total: u32,
|
pub total: u32,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user