pub struct DiscoverRequest {
pub pattern: String,
pub kind: Option<SymbolKind>,
pub sort: Option<SortOrder>,
pub limit: Option<usize>,
pub view: Option<ViewMode>,
pub is_async: Option<bool>,
pub is_unsafe: Option<bool>,
pub scope_path: Option<String>,
pub ignore_case: bool,
pub ignore_word_separate: bool,
pub attr: Option<String>,
pub is_id: bool,
}Expand description
Request for symbol discovery.
Fields§
§pattern: StringPattern to search for (glob-like: *, ?, [a-z]).
kind: Option<SymbolKind>Filter by item kind (function, struct, enum, etc.).
sort: Option<SortOrder>Sort order for results.
limit: Option<usize>Maximum number of results to return.
view: Option<ViewMode>Output detail level (snippet, precise, count, def, full).
is_async: Option<bool>Filter for async functions only (true = async only, false = non-async only).
is_unsafe: Option<bool>Filter for unsafe functions/traits (true = unsafe only, false = safe only).
scope_path: Option<String>Filter by file path pattern (glob, e.g. “src/handlers/**”).
ignore_case: boolCase-insensitive pattern matching (A-Z == a-z).
ignore_word_separate: boolIgnore word separators and casing style (snake_case == camelCase == PascalCase).
attr: Option<String>Filter by attribute pattern (e.g., “deprecated”, “allow(dead_code)”).
is_id: boolInterpret pattern as SymbolId instead of name pattern.
When true, the pattern field is parsed as a SymbolId (e.g., “165v1”)
and a direct registry lookup is performed instead of pattern matching.
Trait Implementations§
Source§impl Clone for DiscoverRequest
impl Clone for DiscoverRequest
Source§fn clone(&self) -> DiscoverRequest
fn clone(&self) -> DiscoverRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiscoverRequest
impl Debug for DiscoverRequest
Source§impl Default for DiscoverRequest
impl Default for DiscoverRequest
Source§impl<'de> Deserialize<'de> for DiscoverRequest
impl<'de> Deserialize<'de> for DiscoverRequest
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>,
Auto Trait Implementations§
impl Freeze for DiscoverRequest
impl RefUnwindSafe for DiscoverRequest
impl Send for DiscoverRequest
impl Sync for DiscoverRequest
impl Unpin for DiscoverRequest
impl UnsafeUnpin for DiscoverRequest
impl UnwindSafe for DiscoverRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more