pub struct FileSearchResult {
pub path: PathBuf,
pub name: String,
pub extension: Option<String>,
pub size: u64,
pub is_dir: bool,
pub content_matches: Vec<ContentMatch>,
}
Expand description
Result of a file search operation
Fields§
§path: PathBuf
Path to the file
name: String
File name
extension: Option<String>
File extension
size: u64
File size in bytes
is_dir: bool
Whether the file is a directory
content_matches: Vec<ContentMatch>
Content matches (if searched for content)
Trait Implementations§
Source§impl Clone for FileSearchResult
impl Clone for FileSearchResult
Source§fn clone(&self) -> FileSearchResult
fn clone(&self) -> FileSearchResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FileSearchResult
impl RefUnwindSafe for FileSearchResult
impl Send for FileSearchResult
impl Sync for FileSearchResult
impl Unpin for FileSearchResult
impl UnwindSafe for FileSearchResult
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