Struct rust_assistant::LineQuery
source · pub struct LineQuery {
pub query: String,
pub mode: SearchMode,
pub case_sensitive: bool,
pub whole_word: bool,
pub max_results: Option<NonZeroUsize>,
pub file_ext: String,
pub path: Option<PathBuf>,
}
Expand description
Represents a query for searching lines within files in a crate.
This struct is used for specifying criteria for line-based searches, such as finding specific text within files.
Fields§
§query: String
The text or pattern to search for.
mode: SearchMode
The search mode (e.g., plain text or regular expression).
case_sensitive: bool
Indicates if the search should be case-sensitive.
whole_word: bool
Indicates if the search should match whole words only.
max_results: Option<NonZeroUsize>
The maximum number of results to return.
file_ext: String
A comma-separated string specifying file extensions to include in the search. Each segment represents a file extension, e.g., “rs,txt” for Rust and text files.
path: Option<PathBuf>
Optional path within the crate to limit the search scope.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LineQuery
impl<'de> Deserialize<'de> for LineQuery
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
Auto Trait Implementations§
impl Freeze for LineQuery
impl RefUnwindSafe for LineQuery
impl Send for LineQuery
impl Sync for LineQuery
impl Unpin for LineQuery
impl UnwindSafe for LineQuery
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