pub struct LocalFile {
pub path: String,
pub can_be_downloaded: bool,
pub can_be_deleted: bool,
pub is_downloading_active: bool,
pub is_downloading_completed: bool,
pub downloaded_prefix_size: i32,
pub downloaded_size: i32,
}
Expand description
Represents a local file
Fields§
§path: String
Local path to the locally available file part; may be empty
can_be_downloaded: bool
True, if it is possible to try to download or generate the file
can_be_deleted: bool
True, if the file can be deleted
is_downloading_active: bool
True, if the file is currently being downloaded (or a local copy is being generated by some other means)
is_downloading_completed: bool
True, if the local copy is fully available
downloaded_prefix_size: i32
If is_downloading_completed is false, then only some prefix of the file is ready to be read. downloaded_prefix_size is the size of that prefix
downloaded_size: i32
Total downloaded file bytes. Should be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LocalFile
impl<'de> Deserialize<'de> for LocalFile
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 Freeze for LocalFile
impl RefUnwindSafe for LocalFile
impl Send for LocalFile
impl Sync for LocalFile
impl Unpin for LocalFile
impl UnwindSafe for LocalFile
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