| /* | |
| * | |
| * | |
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | |
| * | |
| * The version of the OpenAPI document: | |
| * | |
| * Generated by: https://openapi-generator.tech | |
| */ | |
| use crate::models; | |
| use serde::{Deserialize, Serialize}; | |
| pub struct DownloadProgress { | |
| pub downloaded: u64, | |
| pub filename: String, | |
| pub id: String, | |
| pub status: Box<models::DownloadStatus>, | |
| pub total: Option<Option<u64>>, | |
| } | |
| impl DownloadProgress { | |
| pub fn new( | |
| downloaded: u64, | |
| filename: String, | |
| id: String, | |
| status: models::DownloadStatus, | |
| ) -> DownloadProgress { | |
| DownloadProgress { | |
| downloaded, | |
| filename, | |
| id, | |
| status: Box::new(status), | |
| total: None, | |
| } | |
| } | |
| } | |