wasm_capability_contract/capability/vo/capability_descriptor.rs
1//! [`CapabilityDescriptor`] — a registry entry describing one capability's dispatch shape.
2
3/// What a `CapabilityRegistry` returns for one capability name: the host
4/// import name a granted, structurally-present capability wires to.
5///
6/// Registry-internal, never serialized — assembled from Rust code at
7/// composition time, not read from a manifest file.
8#[derive(Debug, Clone, Copy, PartialEq, Eq)]
9pub struct CapabilityDescriptor {
10 /// The Wasm component-level import name this capability wires to
11 /// (e.g. `"some-capability"`), matched against the component's own
12 /// declared imports by the structural byte-ABI check.
13 pub import_name: &'static str,
14}