pub struct UploadableFile {
pub data: Vec<u8>,
pub mime_type: String,
}Expand description
A file ready for upload to UHRP storage.
Contains the file content and MIME type for proper handling by storage hosts.
Fields§
§data: Vec<u8>File content as bytes.
mime_type: StringMIME type (e.g., “image/png”, “application/pdf”).
Implementations§
Trait Implementations§
Source§impl Clone for UploadableFile
impl Clone for UploadableFile
Auto Trait Implementations§
impl Forget for UploadableFile
impl Freeze for UploadableFile
impl Move for UploadableFile
impl RefUnwindSafe for UploadableFile
impl Send for UploadableFile
impl Sync for UploadableFile
impl Unpin for UploadableFile
impl UnsafeUnpin for UploadableFile
impl UnwindSafe for UploadableFile
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