pub struct FileData {
pub filename: String,
pub content: Vec<u8>,
}
Expand description
Represents the data of a file, including its name and content.
§Fields
filename
: The name of the file.content
: The binary content of the file, stored as a vector of bytes.
Fields§
§filename: String
§content: Vec<u8>
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