Struct distant_protocol::DirEntry
source · 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
source§impl PartialEq<DirEntry> for DirEntry
impl PartialEq<DirEntry> for DirEntry
impl Eq for DirEntry
impl StructuralEq for DirEntry
impl StructuralPartialEq for DirEntry
Auto Trait Implementations§
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