pub struct TransferFile {
pub name: String,
pub size: u64,
pub mime_type: Option<String>,
pub id: String,
pub relative_path: Option<String>,
}Expand description
A single file in a transfer
Fields§
§name: StringFile name (not full path for security)
size: u64File size in bytes
mime_type: Option<String>MIME type (if detected)
id: StringUnique identifier for this file in the transfer
relative_path: Option<String>Relative path within a directory transfer (e.g., “subdir/file.txt”) When present, the receiver will recreate the directory structure
Trait Implementations§
Source§impl Clone for TransferFile
impl Clone for TransferFile
Source§fn clone(&self) -> TransferFile
fn clone(&self) -> TransferFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferFile
impl Debug for TransferFile
Source§impl<'de> Deserialize<'de> for TransferFile
impl<'de> Deserialize<'de> for TransferFile
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 TransferFile
impl RefUnwindSafe for TransferFile
impl Send for TransferFile
impl Sync for TransferFile
impl Unpin for TransferFile
impl UnwindSafe for TransferFile
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