pub struct GetItemData {Show 15 fields
pub crate_name: String,
pub item_type: String,
pub item_path: String,
pub item_name: String,
pub version: String,
pub resolved_version: Option<String>,
pub markdown: String,
pub empty: bool,
pub truncated: bool,
pub source_url: String,
pub title: String,
pub cache_hit: bool,
pub extraction: Option<String>,
pub anchor_family: Option<String>,
pub resolved_item_path: Option<String>,
}Expand description
Typed item documentation payload.
Fields§
§crate_name: StringRequested crate name.
item_type: StringNormalized item kind string.
item_path: StringRequested item path.
item_name: StringLast path segment (leaf name) for agent convenience.
version: StringRequested version token.
resolved_version: Option<String>Version resolved by docs.rs redirects when known.
markdown: StringMarkdown extracted from the item page.
empty: boolTrue when the item body is empty.
truncated: boolTrue when output was truncated by max_output_bytes.
source_url: StringFinal source URL of the HTML page.
title: StringPage title when available.
cache_hit: boolTrue when the HTTP body was served from the local disk cache.
extraction: Option<String>How markdown was scoped for associated methods. Success path is method only (1.2.0+ fail-closed; missing anchors are errors).
Read this as “the markdown came from the member anchor”, never as “the
member is a function”. It reports method for every anchor family,
including variant. and structfield., which is why
Self::anchor_family exists.
anchor_family: Option<String>Rustdoc anchor family the markdown was actually scoped to.
One of method, tymethod, associatedtype, associatedconstant,
variant or structfield, derived from the anchor id that matched on
the page rather than from the requested kind.
Added instead of correcting Self::extraction because agents already
assert extraction == "method" to reject a parent-page false success
(see src/docs_rs/html/extract.rs); changing that value would break them
silently, while an absent field is a shape every reader already handles.
resolved_item_path: Option<String>Canonical rustdoc path when a reexport/root path was resolved via all.html.