useserde::{Deserialize, Serialize};/// Upload progress information for a single file.
#[derive(Debug, Clone, Serialize, Deserialize)]pubstructUploadProgress{/// 1-based index of the current file being uploaded.
pubfile_index:usize,
/// Total number of files in the upload.
pubtotal_files:usize,
/// Filename being uploaded.
pubfile_name: String,
/// Bytes sent so far for this file.
pubbytes_sent:u64,
/// Total bytes for this file.
pubtotal_bytes:u64,
/// Percent complete for this file (0-100).
pubpercent:f64,
}