struct McpFileSummary<'a> {Show 24 fields
file_path: &'a str,
language: &'a str,
line_count: usize,
source_status: Option<&'a str>,
source_error: Option<&'a str>,
parser_kind: &'a str,
summary_status: &'a str,
file_purpose: Option<&'a str>,
file_purpose_status: Option<&'a str>,
file_purpose_source: Option<&'a str>,
file_purpose_agent_reviewed: bool,
content_summary: &'a str,
package: Option<&'a str>,
docstring: Option<&'a str>,
truncated: bool,
functions: Option<Vec<McpFileSymbolSummary<'a>>>,
methods: Option<Vec<McpFileSymbolSummary<'a>>>,
classes: Option<Vec<McpFileSymbolSummary<'a>>>,
types: Option<Vec<McpFileSymbolSummary<'a>>>,
imports: Option<&'a [String]>,
dependencies: Option<&'a [String]>,
exports: Option<&'a [String]>,
calls: Option<&'a [FileCallSummary]>,
coverage: Option<McpCompactCoverageDigest<'a>>,
}Expand description
Compact projection used when an agent follows a default startup recommendation.
Fields§
§file_path: &'a strRepository-relative file path.
language: &'a strDetected language or file family.
line_count: usizeSource line count.
source_status: Option<&'a str>Non-default source state when live source was unavailable.
source_error: Option<&'a str>Source read diagnostic when one exists.
parser_kind: &'a strParser family that produced the summary.
summary_status: &'a strSummary quality state agents must inspect before trusting generated prose.
file_purpose: Option<&'a str>Durable file responsibility when present.
file_purpose_status: Option<&'a str>Purpose status for suggestions or other unreviewed rows.
file_purpose_source: Option<&'a str>Purpose source for suggestions or other unreviewed rows.
file_purpose_agent_reviewed: boolWhether an agent approved the retained responsibility.
content_summary: &'a strCurrent deterministic content summary.
package: Option<&'a str>Package or module name when present.
docstring: Option<&'a str>File documentation when present.
truncated: boolWhether the default bounded repeated sections omitted rows.
functions: Option<Vec<McpFileSymbolSummary<'a>>>Indexed functions when present.
methods: Option<Vec<McpFileSymbolSummary<'a>>>Indexed methods when present.
classes: Option<Vec<McpFileSymbolSummary<'a>>>Indexed classes when present.
types: Option<Vec<McpFileSymbolSummary<'a>>>Indexed type declarations when present.
imports: Option<&'a [String]>Imports when present.
dependencies: Option<&'a [String]>Manifest dependencies when present.
exports: Option<&'a [String]>Exported declarations when present.
calls: Option<&'a [FileCallSummary]>Call rows when present.
coverage: Option<McpCompactCoverageDigest<'a>>Coverage details only when they require agent attention.
Trait Implementations§
Source§impl<'a> Debug for McpFileSummary<'a>
impl<'a> Debug for McpFileSummary<'a>
Source§impl<'a> From<&'a FileSummaryReport> for McpFileSummary<'a>
impl<'a> From<&'a FileSummaryReport> for McpFileSummary<'a>
Source§fn from(report: &'a FileSummaryReport) -> Self
fn from(report: &'a FileSummaryReport) -> Self
Auto Trait Implementations§
impl<'a> Freeze for McpFileSummary<'a>
impl<'a> RefUnwindSafe for McpFileSummary<'a>
impl<'a> Send for McpFileSummary<'a>
impl<'a> Sync for McpFileSummary<'a>
impl<'a> Unpin for McpFileSummary<'a>
impl<'a> UnwindSafe for McpFileSummary<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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