pub struct TypeAnalysisResponse {Show 16 fields
pub symbol_id: String,
pub display_name: String,
pub mod_path: Option<String>,
pub kind: Option<String>,
pub usage_count: usize,
pub usages: Vec<TypeUsageInfo>,
pub impact: Option<TypeImpactInfo>,
pub supertraits: Vec<String>,
pub implementors: Vec<String>,
pub fields: Vec<TypeFieldInfo>,
pub variants: Vec<TypeVariantInfo>,
pub params: Vec<TypeParamInfo>,
pub return_type: Option<String>,
pub methods: Vec<String>,
pub generics: Option<String>,
pub attrs: Vec<String>,
}Expand description
Response from type analysis.
Fields§
§symbol_id: StringSymbol ID string.
display_name: StringDisplay name.
mod_path: Option<String>Module path.
kind: Option<String>Kind (Struct, Enum, etc.).
usage_count: usizeUsage count.
usages: Vec<TypeUsageInfo>Usages (context, ref_kind). Populated for Usage/Impact modes.
impact: Option<TypeImpactInfo>Impact info (direct usages, bound usages, containing types). Populated for Impact mode.
supertraits: Vec<String>Supertraits (for traits only): parent traits from trait Foo: Bar + Baz.
implementors: Vec<String>Implementors (for traits only): types that implement this trait.
fields: Vec<TypeFieldInfo>Struct/enum fields. Populated for Definition mode.
variants: Vec<TypeVariantInfo>Enum variants. Populated for Definition mode.
params: Vec<TypeParamInfo>Function parameters. Populated for Definition mode.
return_type: Option<String>Function return type. Populated for Definition mode.
methods: Vec<String>Trait method names. Populated for Definition mode.
generics: Option<String>Generic parameters string (e.g. “<T, U: Clone>”). Populated for Definition mode.
attrs: Vec<String>Attributes (e.g. [“derive”, “serde”]). Populated for Definition mode.
Trait Implementations§
Source§impl Clone for TypeAnalysisResponse
impl Clone for TypeAnalysisResponse
Source§fn clone(&self) -> TypeAnalysisResponse
fn clone(&self) -> TypeAnalysisResponse
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 TypeAnalysisResponse
impl Debug for TypeAnalysisResponse
Source§impl<'de> Deserialize<'de> for TypeAnalysisResponse
impl<'de> Deserialize<'de> for TypeAnalysisResponse
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 TypeAnalysisResponse
impl RefUnwindSafe for TypeAnalysisResponse
impl Send for TypeAnalysisResponse
impl Sync for TypeAnalysisResponse
impl Unpin for TypeAnalysisResponse
impl UnsafeUnpin for TypeAnalysisResponse
impl UnwindSafe for TypeAnalysisResponse
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