pub struct FindQuery {
pub paths: Vec<PathBuf>,
pub globs: Vec<String>,
pub literal: Option<String>,
pub regex: Option<String>,
pub pattern: Option<String>,
pub language: Option<String>,
pub offset: usize,
pub limit: usize,
pub within: Vec<String>,
}Expand description
What to search and where.
Fields§
§paths: Vec<PathBuf>Files or directories to search. Directories honor .gitignore.
globs: Vec<String>Glob patterns a file must match, such as **/*.rs. ! excludes.
literal: Option<String>Literal text to find. Give exactly one of literal, regex, pattern.
regex: Option<String>Regular expression to find, with capture groups.
pattern: Option<String>Structural pattern with $VAR and $$$VARS metavariables.
language: Option<String>Language for a structural pattern; defaults to each file’s extension.
offset: usizeMatches to skip, for paging.
limit: usizeMost matches to return.
within: Vec<String>Only match inside syntax nodes of these kinds, such as comment or
string, in enabled languages. Files in another language are
skipped once this is set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FindQuery
impl<'de> Deserialize<'de> for FindQuery
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 JsonSchema for FindQuery
impl JsonSchema for FindQuery
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FindQuery
impl RefUnwindSafe for FindQuery
impl Send for FindQuery
impl Sync for FindQuery
impl Unpin for FindQuery
impl UnsafeUnpin for FindQuery
impl UnwindSafe for FindQuery
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