pub struct UploadProgress {
pub file_index: usize,
pub total_files: usize,
pub file_name: String,
pub bytes_sent: u64,
pub total_bytes: u64,
pub percent: f64,
}Expand description
Upload progress information for a single file.
Fields§
§file_index: usize1-based index of the current file being uploaded.
total_files: usizeTotal number of files in the upload.
file_name: StringFilename being uploaded.
bytes_sent: u64Bytes sent so far for this file.
total_bytes: u64Total bytes for this file.
percent: f64Percent complete for this file (0-100).
Trait Implementations§
Source§impl Clone for UploadProgress
impl Clone for UploadProgress
Source§fn clone(&self) -> UploadProgress
fn clone(&self) -> UploadProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadProgress
impl Debug for UploadProgress
Source§impl<'de> Deserialize<'de> for UploadProgress
impl<'de> Deserialize<'de> for UploadProgress
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UploadProgress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UploadProgress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UploadProgress
impl Serialize for UploadProgress
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UploadProgress
impl RefUnwindSafe for UploadProgress
impl Send for UploadProgress
impl Sync for UploadProgress
impl Unpin for UploadProgress
impl UnsafeUnpin for UploadProgress
impl UnwindSafe for UploadProgress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more