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>,
}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.
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComponentManifest
impl PartialEq for ComponentManifest
Source§impl Serialize for ComponentManifest
impl Serialize for ComponentManifest
impl Eq 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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.