pub struct LocalFile { /* private fields */ }
Expand description
Represents a local file
Implementations§
Source§impl LocalFile
impl LocalFile
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> LocalFileBuilder
pub fn path(&self) -> &String
pub fn can_be_downloaded(&self) -> bool
pub fn can_be_deleted(&self) -> bool
pub fn is_downloading_active(&self) -> bool
pub fn is_downloading_completed(&self) -> bool
pub fn download_offset(&self) -> i32
pub fn downloaded_prefix_size(&self) -> i32
pub fn downloaded_size(&self) -> i32
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