pub struct FileInfo {
pub path: PathBuf,
pub kind: FileKind,
pub size: u64,
pub content_type: Option<&'static str>,
}Fields§
§path: PathBuf§kind: FileKind§size: u64§content_type: Option<&'static str>MIME type sniffed from the first bytes of the file’s content, via
infer. None for directories, symlinks, and files whose content
doesn’t match any known signature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnsafeUnpin 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