Skip to main content

FindReferencesInput

Struct FindReferencesInput 

Source
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: String

Symbol 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

Source§

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 FindReferencesInput

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

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

Generates a JSON Schema for this type. Read more
Source§

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 more
Source§

impl Serialize for FindReferencesInput

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more