pub struct File {
pub id: i32,
pub size: i64,
pub expected_size: i64,
pub local: LocalFile,
pub remote: RemoteFile,
}
Expand description
Represents a file
Fields§
§id: i32
Unique file identifier
size: i64
File size, in bytes; 0 if unknown
expected_size: i64
Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress
local: LocalFile
Information about the local copy of the file
remote: RemoteFile
Information about the remote copy of the file
Trait Implementations§
Source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
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
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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