pub struct File {
pub base: EntryBase,
pub file_id: u64,
pub size: Option<usize>,
pub hash: Option<usize>,
pub content_type: Option<String>,
}
Expand description
A structure representing a file stored on pCloud.
Includes metadata such as the file’s unique ID, size, content type, and other attributes.
This struct implements comparison traits so files can be sorted or compared by name.
Fields§
§base: EntryBase
Base metadata common to all entries (files and folders).
file_id: u64
The unique file ID assigned by pCloud.
size: Option<usize>
The size of the file in bytes.
hash: Option<usize>
A hash of the file content (may be used for caching or deduplication).
content_type: Option<String>
The MIME type of the file (e.g., "image/jpeg"
, "application/pdf"
).
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
Source§impl Ord for File
impl Ord for File
Source§impl PartialOrd for File
impl PartialOrd for File
impl Eq 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