pub struct Capability {Show 17 fields
pub id: CapabilityId,
pub project_id: ProjectId,
pub name: String,
pub description: Option<String>,
pub substrate: Option<String>,
pub consumes: Vec<String>,
pub produces: Vec<String>,
pub status: CapabilityStatus,
pub stub: bool,
pub stub_since: Option<NaiveDate>,
pub owner: Option<Owner>,
pub source: SourceLocation,
pub annotation_raw: String,
pub conditional: bool,
pub created_at: EpochMillis,
pub updated_at: EpochMillis,
pub meta: Option<Value>,
}Expand description
A typed unit of behavior declared by a // @g8.capability(...) annotation.
Capabilities are project-scoped; the same kebab-case name in two projects is two distinct capabilities unless an alias resolves them.
Fields§
§id: CapabilityId§project_id: ProjectId§name: StringKebab-case name; project-scoped (per SPEC Decision 3).
description: Option<String>§substrate: Option<String>Substrate this capability belongs to (string label, not a foreign key).
consumes: Vec<String>Free-form substrate-typed identifiers of things this capability consumes.
produces: Vec<String>Free-form substrate-typed identifiers of things this capability produces.
status: CapabilityStatus§stub: booltrue when the annotation carries stub = true.
stub_since: Option<NaiveDate>ISO date from which the stub exemption was granted (since field).
owner: Option<Owner>§source: SourceLocationWhere in source the annotation was found.
annotation_raw: StringThe raw annotation string (for debugging / round-trip).
conditional: boolSet when extractor flagged dev_only=true, cfg_attr, or tests/ dir.
created_at: EpochMillis§updated_at: EpochMillis§meta: Option<Value>Arbitrary extensibility bag — serde_json::Value for v0.1 flexibility.