pub struct ResolvedEntry {
pub spec: String,
pub resolved_version: String,
pub content_hash: String,
pub fetched_at: String,
pub file_count: u64,
pub format: Option<EntryFormat>,
pub store_path: Option<String>,
pub materialization: Option<Materialization>,
pub in_place_path: Option<String>,
pub commit: Option<String>,
pub store_subpath: Option<String>,
}Expand description
One row in .ask/resolved.json. Optional fields are omitted from the
serialized JSON when absent (parity with the TS optional keys). Unknown
fields are rejected (zod .strict()).
Fields§
§spec: StringThe exact spec from ask.json (so we can detect spec edits).
resolved_version: StringResolved version (lockfile for PM-driven, ref for standalone).
content_hash: StringHash of the materialized doc files (sha256-<64 hex>).
fetched_at: StringISO timestamp of the most recent successful fetch.
file_count: u64Number of files written under .ask/docs/<slug>@<ver>/.
format: Option<EntryFormat>§store_path: Option<String>§materialization: Option<Materialization>§in_place_path: Option<String>Project-relative docs path when materialization == in-place.
commit: Option<String>Git commit SHA a github ref resolved to (40-char lowercase hex).
store_subpath: Option<String>Relative subpath inside store_path holding the docs tree.
Implementations§
Source§impl ResolvedEntry
impl ResolvedEntry
Sourcepub fn validate(&self) -> Result<(), ResolvedError>
pub fn validate(&self) -> Result<(), ResolvedError>
Enforce the field-shape refinements serde structural parsing cannot.
Trait Implementations§
Source§impl Clone for ResolvedEntry
impl Clone for ResolvedEntry
Source§impl Debug for ResolvedEntry
impl Debug for ResolvedEntry
Source§impl<'de> Deserialize<'de> for ResolvedEntry
impl<'de> Deserialize<'de> for ResolvedEntry
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
impl Eq for ResolvedEntry
Source§impl PartialEq for ResolvedEntry
impl PartialEq for ResolvedEntry
Source§impl Serialize for ResolvedEntry
impl Serialize for ResolvedEntry
impl StructuralPartialEq for ResolvedEntry
Auto Trait Implementations§
impl Forget for ResolvedEntry
impl Freeze for ResolvedEntry
impl Move for ResolvedEntry
impl RefUnwindSafe for ResolvedEntry
impl Send for ResolvedEntry
impl Sync for ResolvedEntry
impl Unpin for ResolvedEntry
impl UnsafeUnpin for ResolvedEntry
impl UnwindSafe for ResolvedEntry
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