pub struct CapsuleInterface {
pub world: String,
pub input_schema: Option<Value>,
pub output_schema: Option<Value>,
}Expand description
The declared graph/node interface: the WIT world the component was built against, plus the typed input/output the world exports.
Fields§
§world: StringThe WIT world reference (rusty:capsule/world@x.y.z). Admission
accepts exactly the versions in SUPPORTED_WORLDS — an unknown
world is a capsule from another interface era, refused rather than
guessed at.
input_schema: Option<Value>JSON Schema (draft 2020-12, the dialect
crate::durable::ArtifactContract::schema pinned in R0.7)
describing the guest’s input. Wave 1 pins the shape — the
declaration is part of the content address, so schema drift is
visible to every consumer — and the host enforces the structural
half (the canonical ABI itself types the export); full draft-2020-12
validation lands with the wave that adopts a validator, the same
staging ArtifactContract::schema documented.
output_schema: Option<Value>JSON Schema describing the guest’s output, same staging as
CapsuleInterface::input_schema. The host’s output gate enforces
well-formed JSON and max_output_bytes in wave 1.
Trait Implementations§
Source§impl Clone for CapsuleInterface
impl Clone for CapsuleInterface
Source§fn clone(&self) -> CapsuleInterface
fn clone(&self) -> CapsuleInterface
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more