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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComponentManifest
impl Debug for ComponentManifest
Source§impl<'de> Deserialize<'de> for ComponentManifest
impl<'de> Deserialize<'de> for ComponentManifest
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 ComponentManifest
impl PartialEq for ComponentManifest
Source§impl Serialize for ComponentManifest
impl Serialize for ComponentManifest
impl StructuralPartialEq for ComponentManifest
Auto Trait Implementations§
impl Freeze for ComponentManifest
impl RefUnwindSafe for ComponentManifest
impl Send for ComponentManifest
impl Sync for ComponentManifest
impl Unpin for ComponentManifest
impl UnwindSafe for ComponentManifest
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)