Skip to main content

Component

Struct Component 

Source
pub struct Component {
Show 23 fields pub vendor: Option<String>, pub class: Option<String>, pub group: String, pub sub: Option<String>, pub variant: Option<String>, pub version: Option<String>, pub api_version: Option<String>, pub condition: Option<String>, pub custom: Option<bool>, pub max_instances: Option<u32>, pub is_default_variant: Option<bool>, pub generator: Option<String>, pub license_set: Option<String>, pub view: Option<String>, pub changelog: Option<String>, pub deprecated: Option<bool>, pub description: String, pub rte_components_h: Option<String>, pub pre_include_global_h: Option<String>, pub pre_include_local_component_h: Option<String>, pub files: ComponentFiles, pub extensions: ComponentExtensions, pub environments: Option<ComponentEnvironments>,
}
Expand description

Represents a component element

Defines a single software component. Used for both top-level components and components nested inside a bundle. When inside a bundle, class and version are absent (inherited).

Fields§

§vendor: Option<String>

Component vendor; derives from package vendor if omitted

§class: Option<String>

Component class; absent when nested in a bundle (inherited)

§group: String

Component group

§sub: Option<String>

Component sub-group (3–32 characters)

§variant: Option<String>

Variant name (e.g. release, debug); mutually exclusive with other variants

§version: Option<String>

Component version; absent when nested in a bundle unless overriding

§api_version: Option<String>

API version consumed by this component

§condition: Option<String>

References a condition ID; component is included only if the condition is met

§custom: Option<bool>

If true, suppresses the automatic resolver; component requires manual selection

§max_instances: Option<u32>

Number of simultaneous instances allowed (1–10); default is 1

§is_default_variant: Option<bool>

Marks this variant as the preferred choice for automated updates

§generator: Option<String>

Links to a <generator> entry in the same pack

§license_set: Option<String>

References a licenseSet identifier governing usage rights

§view: Option<String>

User-facing visibility (always, never, maskable); default is always

§changelog: Option<String>

References a changelog ID with the component change history

§deprecated: Option<bool>

Marks the component as deprecated; deprecated components should not be used in new designs

§description: String

Brief description of the component (max 256 characters)

§rte_components_h: Option<String>

C preprocessor definitions injected verbatim into RTE_Components.h

§pre_include_global_h: Option<String>

Content pre-included globally for all project modules via Pre_Include_Global.h

§pre_include_local_component_h: Option<String>

Content pre-included for this component’s modules only via Pre_Include_<Cclass>_<component>.h

§files: ComponentFiles

Source and header files that implement this component

§extensions: ComponentExtensions

Key/value metadata extensions for toolchain or IDE integration

§environments: Option<ComponentEnvironments>

IDE-specific tool integration environments (0..1)

Trait Implementations§

Source§

impl Clone for Component

Source§

fn clone(&self) -> Component

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Component

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Component

Source§

fn default() -> Component

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Component

Source§

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 Eq for Component

Source§

impl PartialEq for Component

Source§

fn eq(&self, other: &Component) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Component

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Component

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.