pub struct CodeSearchParams {
pub query: String,
pub kind: Option<String>,
pub language: Option<String>,
pub limit: u32,
pub include_tests: bool,
pub tests_only: bool,
pub exclude: Option<String>,
pub paths: Option<String>,
pub scope: Option<String>,
}Fields§
§query: StringConcept or keyword(s) to search for. BM25-ranked via FTS5. Supports inline exclusion syntax: “drift playhead -sample -waveform”.
kind: Option<String>Filter by symbol kind: module, function, method, class, variable.
language: Option<String>Filter by language (e.g. “swift”, “python”, “typescript”, “rust”).
limit: u32Max results to return (default: 20).
include_tests: boolInclude test-file symbols in results (default: false — tests excluded so production entry points rank first).
tests_only: boolRestrict to test symbols only. Overrides include_tests when true. Use when classifying test coverage or auditing test layout.
exclude: Option<String>Comma-separated terms to exclude (e.g. “sample editor,waveform”).
paths: Option<String>Comma-separated glob patterns to restrict to specific paths (e.g. “App/**/DriftPad*”).
scope: Option<String>Named scope alias from .asd/scopes.toml (e.g. “drift-pad”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CodeSearchParams
impl<'de> Deserialize<'de> for CodeSearchParams
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 CodeSearchParams
impl JsonSchema for CodeSearchParams
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 CodeSearchParams
impl RefUnwindSafe for CodeSearchParams
impl Send for CodeSearchParams
impl Sync for CodeSearchParams
impl Unpin for CodeSearchParams
impl UnsafeUnpin for CodeSearchParams
impl UnwindSafe for CodeSearchParams
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