pub struct CodeEntity {
pub id: EntityId,
pub kind: CodeEntityKind,
pub qualified_path: String,
pub short_name: String,
pub file_path: Option<String>,
pub line: Option<u32>,
}Expand description
A code entity with hierarchical path identity.
The qualified_path encodes the full code location, e.g.:
semantic-memory::src/lib.rs::MemoryStore::search
Fields§
§id: EntityIdEntity identity (scope-aware).
kind: CodeEntityKindCode entity kind.
qualified_path: StringFully qualified path (crate::module::item or file::item).
short_name: StringShort name (e.g. function name, type name).
file_path: Option<String>Optional containing file path.
line: Option<u32>Optional line number in the file.
Trait Implementations§
Source§impl Clone for CodeEntity
impl Clone for CodeEntity
Source§fn clone(&self) -> CodeEntity
fn clone(&self) -> CodeEntity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodeEntity
impl Debug for CodeEntity
Source§impl<'de> Deserialize<'de> for CodeEntity
impl<'de> Deserialize<'de> for CodeEntity
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CodeEntity
impl RefUnwindSafe for CodeEntity
impl Send for CodeEntity
impl Sync for CodeEntity
impl Unpin for CodeEntity
impl UnsafeUnpin for CodeEntity
impl UnwindSafe for CodeEntity
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