pub struct CapabilityCatalogSnapshot {
pub catalog_id: String,
pub source_kind: CapabilitySourceKind,
pub source_ref: SourceRef,
pub version: Option<String>,
pub content_hash: Option<String>,
pub trust_state: TrustClass,
pub activation_policy_ref: PolicyRef,
pub candidates: Vec<CapabilityId>,
}Expand description
Describes the capability catalog snapshot portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§catalog_id: StringStable catalog id used for typed lineage, lookup, or dedupe.
source_kind: CapabilitySourceKindKind discriminator for source kind. Use it to route finite match arms without parsing display text.
source_ref: SourceRefTyped source reference that records where this item originated.
version: Option<String>Version string for this capability, package, or protocol surface. Use it for compatibility checks during package or adapter resolution.
content_hash: Option<String>Stable hash for the bytes or canonical payload used for stale checks and fingerprints.
trust_state: TrustClassTrust state used by this record or request.
activation_policy_ref: PolicyRefTyped activation policy ref reference. Resolving or executing it is a separate policy-gated step.
candidates: Vec<CapabilityId>Candidate capabilities, tools, resources, or package entries exposed for host-approved selection.
Trait Implementations§
Source§impl Clone for CapabilityCatalogSnapshot
impl Clone for CapabilityCatalogSnapshot
Source§fn clone(&self) -> CapabilityCatalogSnapshot
fn clone(&self) -> CapabilityCatalogSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapabilityCatalogSnapshot
impl Debug for CapabilityCatalogSnapshot
Source§impl<'de> Deserialize<'de> for CapabilityCatalogSnapshot
impl<'de> Deserialize<'de> for CapabilityCatalogSnapshot
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>,
Source§impl PartialEq for CapabilityCatalogSnapshot
impl PartialEq for CapabilityCatalogSnapshot
Source§fn eq(&self, other: &CapabilityCatalogSnapshot) -> bool
fn eq(&self, other: &CapabilityCatalogSnapshot) -> bool
self and other values to be equal, and is used by ==.