pub enum FileData {
Bytes(Bytes),
Base64(String),
Path(PathBuf),
TempFile(PathBuf),
}
Expand description
Different sources of file data
Variants§
Bytes(Bytes)
In-memory bytes
Base64(String)
Base64 encoded data
Path(PathBuf)
File path for lazy loading
TempFile(PathBuf)
Temporary file
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FileData
impl RefUnwindSafe for FileData
impl Send for FileData
impl Sync for FileData
impl Unpin for FileData
impl UnwindSafe for FileData
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