pub struct DirEntry {
pub path: PathBuf,
pub file_type: FileType,
pub depth: usize,
}
Expand description
Represents information about a single entry within a directory
Fields§
§path: PathBuf
Represents the full path to the entry
file_type: FileType
Represents the type of the entry as a file/dir/symlink
depth: usize
Depth at which this entry was created relative to the root (0 being immediately within root)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DirEntry
impl<'de> Deserialize<'de> for DirEntry
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 DirEntry
impl StructuralPartialEq for DirEntry
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
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