pub struct Symbol {
pub name: String,
pub kind: SymbolKind,
pub signature: String,
pub docstring: Option<String>,
pub attributes: Vec<String>,
pub start_line: usize,
pub end_line: usize,
pub visibility: Visibility,
pub children: Vec<Symbol>,
pub is_interface_impl: bool,
pub implements: Vec<String>,
}Expand description
A code symbol extracted from source
Fields§
§name: String§kind: SymbolKind§signature: String§docstring: Option<String>§attributes: Vec<String>§start_line: usize§end_line: usize§visibility: Visibility§children: Vec<Symbol>§is_interface_impl: boolTrue if this symbol implements an interface/trait (e.g., method in impl Trait for Type)
implements: Vec<String>Parent interfaces/classes this symbol extends or implements (for semantic matching)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request