pub struct ComponentManifest {
pub id: ComponentId,
pub version: Version,
pub supports: Vec<FlowKind>,
pub world: String,
pub profiles: ComponentProfiles,
pub capabilities: ComponentCapabilities,
pub configurators: Option<ComponentConfigurators>,
pub operations: Vec<ComponentOperation>,
pub config_schema: Option<Value>,
pub resources: ResourceHints,
pub dev_flows: BTreeMap<FlowId, ComponentDevFlow>,
}Expand description
Component metadata describing capabilities and supported flows.
Fields§
§id: ComponentIdLogical component identifier (opaque string).
version: VersionSemantic component version.
supports: Vec<FlowKind>Flow kinds this component can participate in.
world: StringReferenced WIT world binding.
profiles: ComponentProfilesProfile metadata for the component.
capabilities: ComponentCapabilitiesCapability contract required by the component.
configurators: Option<ComponentConfigurators>Optional configurator flows.
operations: Vec<ComponentOperation>Operation-level descriptions.
config_schema: Option<Value>Optional configuration schema.
resources: ResourceHintsResource usage hints for deployers/schedulers.
dev_flows: BTreeMap<FlowId, ComponentDevFlow>Development-time flows used for authoring only. This field is optional and ignored by runtime systems. Tools may store FlowIR-as-JSON values here to allow editing flows without sidecar files.
Implementations§
Source§impl ComponentManifest
impl ComponentManifest
Sourcepub fn supports_kind(&self, kind: FlowKind) -> bool
pub fn supports_kind(&self, kind: FlowKind) -> bool
Returns true when the component supports the specified flow kind.
Sourcepub fn select_profile<'a>(
&'a self,
requested: Option<&str>,
) -> Result<Option<&'a str>, ComponentProfileError>
pub fn select_profile<'a>( &'a self, requested: Option<&str>, ) -> Result<Option<&'a str>, ComponentProfileError>
Resolves the effective profile name, returning the requested profile when supported or falling back to the manifest default.
Sourcepub fn basic_configurator(&self) -> Option<&FlowId>
pub fn basic_configurator(&self) -> Option<&FlowId>
Returns the optional basic configurator flow identifier.
Sourcepub fn full_configurator(&self) -> Option<&FlowId>
pub fn full_configurator(&self) -> Option<&FlowId>
Returns the optional full configurator flow identifier.
Trait Implementations§
Source§impl Clone for ComponentManifest
impl Clone for ComponentManifest
Source§fn clone(&self) -> ComponentManifest
fn clone(&self) -> ComponentManifest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more