pub struct FindReferencesInput {Show 14 fields
pub name: String,
pub kind: Option<String>,
pub path: Option<String>,
pub symbol_kind: Option<String>,
pub symbol_line: Option<u32>,
pub limit: Option<u32>,
pub max_per_file: Option<u32>,
pub compact: Option<bool>,
pub mode: Option<String>,
pub direction: Option<String>,
pub estimate: Option<bool>,
pub max_tokens: Option<u64>,
pub project: Option<String>,
pub projects: Option<Vec<String>>,
}Expand description
Input for find_references.
Fields§
§name: StringSymbol name to find references for (or trait/type name when mode=‘implementations’).
kind: Option<String>Filter by reference kind: “call”, “import”, “type_usage”, or “all” (default: “all”). Ignored when mode=‘implementations’.
path: Option<String>Optional exact-selector path from search_symbols, for example src/db.rs. Ignored when mode=‘implementations’.
symbol_kind: Option<String>Optional selected symbol kind such as fn, class, or struct. Ignored when mode=‘implementations’.
symbol_line: Option<u32>Optional selected symbol line from search_symbols. Ignored when mode=‘implementations’.
limit: Option<u32>Maximum number of files/entries to show (default 20 for references, 200 for implementations; capped at 100/500).
max_per_file: Option<u32>Maximum number of reference hits per file (default 10, capped at 50). Ignored when mode=‘implementations’.
compact: Option<bool>When true, show compact output: file:line [kind] in symbol — no source text (60-75% smaller). Ignored when mode=‘implementations’.
mode: Option<String>Mode: “references” (default — call sites, imports, type usages) or “implementations” (trait/interface implementors and implemented traits). When mode=‘implementations’, only name, direction, and limit are used.
direction: Option<String>Search direction for implementations mode: “trait” (find implementors), “type” (find traits a type implements), or “auto” (default: search both).
estimate: Option<bool>When true, return an approximate token cost estimate instead of actual content.
max_tokens: Option<u64>Optional maximum token budget for the response.
project: Option<String>Feature 012 (Phase 3): target a SINGLE open project by id/alias instead of
the session’s active project. Mutually exclusive with projects; must be a
project id/alias, never a path. Omitting both targets the active project.
projects: Option<Vec<String>>Feature 012 (Phase 3): target an EXPLICIT subset of open projects by
id/alias, or ["*"] for every open project. Mutually exclusive with
project; an empty list is rejected. Daemon-only.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FindReferencesInput
impl<'de> Deserialize<'de> for FindReferencesInput
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>,
Source§impl JsonSchema for FindReferencesInput
impl JsonSchema for FindReferencesInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FindReferencesInput
impl RefUnwindSafe for FindReferencesInput
impl Send for FindReferencesInput
impl Sync for FindReferencesInput
impl Unpin for FindReferencesInput
impl UnsafeUnpin for FindReferencesInput
impl UnwindSafe for FindReferencesInput
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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