Struct distant_protocol::SearchQuery
source · pub struct SearchQuery {
pub target: SearchQueryTarget,
pub condition: SearchQueryCondition,
pub paths: Vec<PathBuf>,
pub options: SearchQueryOptions,
}
Expand description
Represents a query to perform against the filesystem
Fields§
§target: SearchQueryTarget
Kind of data to examine using condition
condition: SearchQueryCondition
Condition to meet to be considered a match
paths: Vec<PathBuf>
Paths in which to perform the query
options: SearchQueryOptions
Options to apply to the query
Implementations§
source§impl SearchQuery
impl SearchQuery
sourcepub fn contents<I, T>(
condition: SearchQueryCondition,
paths: I,
options: SearchQueryOptions
) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
pub fn contents<I, T>( condition: SearchQueryCondition, paths: I, options: SearchQueryOptions ) -> Selfwhere I: IntoIterator<Item = T>, T: Into<PathBuf>,
Creates a search query targeting the contents of files.
sourcepub fn path<I, T>(
condition: SearchQueryCondition,
paths: I,
options: SearchQueryOptions
) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
pub fn path<I, T>( condition: SearchQueryCondition, paths: I, options: SearchQueryOptions ) -> Selfwhere I: IntoIterator<Item = T>, T: Into<PathBuf>,
Creates a search query targeting the paths of files, directories, and symlinks.
Trait Implementations§
source§impl Clone for SearchQuery
impl Clone for SearchQuery
source§fn clone(&self) -> SearchQuery
fn clone(&self) -> SearchQuery
Returns a copy 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 moresource§impl Debug for SearchQuery
impl Debug for SearchQuery
source§impl<'de> Deserialize<'de> for SearchQuery
impl<'de> Deserialize<'de> for SearchQuery
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<SearchQuery> for SearchQuery
impl PartialEq<SearchQuery> for SearchQuery
source§fn eq(&self, other: &SearchQuery) -> bool
fn eq(&self, other: &SearchQuery) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SearchQuery
impl Serialize for SearchQuery
impl Eq for SearchQuery
impl StructuralEq for SearchQuery
impl StructuralPartialEq for SearchQuery
Auto Trait Implementations§
impl RefUnwindSafe for SearchQuery
impl Send for SearchQuery
impl Sync for SearchQuery
impl Unpin for SearchQuery
impl UnwindSafe for SearchQuery
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