pub struct CodeFileRecord {
pub source_scope: SourceScope,
pub path: String,
pub content_hash: String,
pub language_id: String,
pub parse_status: CodeParseStatus,
pub diagnostic: Option<String>,
pub symbols: Vec<CodeSymbolRecord>,
pub references: Vec<CodeReferenceRecord>,
pub chunks: Vec<CodeChunkRecord>,
}Expand description
Parser output for one repository file.
Fields§
§source_scope: SourceScope§path: String§content_hash: String§language_id: String§parse_status: CodeParseStatus§diagnostic: Option<String>§symbols: Vec<CodeSymbolRecord>§references: Vec<CodeReferenceRecord>§chunks: Vec<CodeChunkRecord>Implementations§
Source§impl CodeFileRecord
impl CodeFileRecord
Sourcepub fn new(fields: CodeFileFields) -> Result<Self, DomainError>
pub fn new(fields: CodeFileFields) -> Result<Self, DomainError>
Validates parser output and keeps extracted facts scoped to this file.
Trait Implementations§
Source§impl Clone for CodeFileRecord
impl Clone for CodeFileRecord
Source§fn clone(&self) -> CodeFileRecord
fn clone(&self) -> CodeFileRecord
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 CodeFileRecord
impl Debug for CodeFileRecord
Source§impl<'de> Deserialize<'de> for CodeFileRecord
impl<'de> Deserialize<'de> for CodeFileRecord
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
Source§impl PartialEq for CodeFileRecord
impl PartialEq for CodeFileRecord
Source§fn eq(&self, other: &CodeFileRecord) -> bool
fn eq(&self, other: &CodeFileRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CodeFileRecord
impl Serialize for CodeFileRecord
impl Eq for CodeFileRecord
impl StructuralPartialEq for CodeFileRecord
Auto Trait Implementations§
impl Freeze for CodeFileRecord
impl RefUnwindSafe for CodeFileRecord
impl Send for CodeFileRecord
impl Sync for CodeFileRecord
impl Unpin for CodeFileRecord
impl UnsafeUnpin for CodeFileRecord
impl UnwindSafe for CodeFileRecord
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