pub struct FileBytes {
pub entry: PathEntry,
pub bytes: Vec<u8>,
}Expand description
File bytes plus the metadata entry they came from.
Fields§
§entry: PathEntryAuthoritative metadata for the file that was read.
bytes: Vec<u8>Validated file bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileBytes
impl<'de> Deserialize<'de> for FileBytes
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
impl Eq for FileBytes
impl StructuralPartialEq for FileBytes
Auto Trait Implementations§
impl Freeze for FileBytes
impl RefUnwindSafe for FileBytes
impl Send for FileBytes
impl Sync for FileBytes
impl Unpin for FileBytes
impl UnsafeUnpin for FileBytes
impl UnwindSafe for FileBytes
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