#[non_exhaustive]pub struct FileItem {
pub path: String,
pub url: Option<Url>,
pub size: Option<u64>,
pub downloaded: u64,
pub state: FileState,
pub checksum: Option<Checksum>,
pub selected: bool,
}Expand description
Progress and state for one file belonging to a task.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringRelative output path under the task destination, using / separators.
url: Option<Url>Source URL, when the file was resolved from a link.
size: Option<u64>Expected size in bytes, once known.
downloaded: u64Bytes downloaded so far.
state: FileStateCurrent per-file state.
checksum: Option<Checksum>Expected checksum, when known.
selected: boolWhether this file is selected for download.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileItem
impl<'de> Deserialize<'de> for FileItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for FileItem
impl Freeze for FileItem
impl Move for FileItem
impl RefUnwindSafe for FileItem
impl Send for FileItem
impl Sync for FileItem
impl Unpin for FileItem
impl UnsafeUnpin for FileItem
impl UnwindSafe for FileItem
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