Skip to main content

bundle_version_meta_json

Function bundle_version_meta_json 

Source
fn bundle_version_meta_json(
    id: &str,
    content_hash: &str,
    parent_version_id: &Option<String>,
    source: &str,
    source_detail: &str,
    written_by: &str,
    written_by_uid: &str,
    created_at: i64,
) -> Value
Expand description

A version’s metadata as JSON — id/content_hash/parent_version_id/ source/source_detail/written_by/created_at, no name/ instructions. Takes the five common-field accessors as plain values rather than borrowing a concrete struct so both BundleVersionSummary (the history list shape) and BundleVersion (the full-content shape revert’s freshly-inserted row comes back as) can share this one formatter without either type needing to convert into the other.