pub struct FileInfo {
pub path: PathBuf,
pub metadata: Metadata,
pub contents: Vec<u8>,
}Expand description
File’s path, metadata and contents.
Fields§
§path: PathBufPath.
metadata: MetadataMetadata.
contents: Vec<u8>File contents.
Trait Implementations§
impl Eq for FileInfo
impl StructuralPartialEq for FileInfo
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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