link-common 0.5.2-rc.2

Shared Rust implementation for KalamDB link crates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

/// Upload progress information for a single file.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct UploadProgress {
    /// 1-based index of the current file being uploaded.
    pub file_index: usize,
    /// Total number of files in the upload.
    pub total_files: usize,
    /// Filename being uploaded.
    pub file_name: String,
    /// Bytes sent so far for this file.
    pub bytes_sent: u64,
    /// Total bytes for this file.
    pub total_bytes: u64,
    /// Percent complete for this file (0-100).
    pub percent: f64,
}