pub struct ComponentFile {Show 13 fields
pub name: String,
pub category: String,
pub attr: Option<String>,
pub condition: Option<String>,
pub version: Option<String>,
pub select: Option<String>,
pub src: Option<String>,
pub path: Option<String>,
pub language: Option<String>,
pub scope: Option<String>,
pub public: Option<bool>,
pub projectpath: Option<String>,
pub copy: Option<String>,
}Expand description
Represents a file entry within a component
Attributes follow the PDSC FileType definition shared across components and APIs.
Fields§
§name: StringFile path relative to the pack root; may be a URL for category="doc"
category: StringFile category (e.g. header, sourceC, doc, library)
attr: Option<String>Special handling: config (copied to project, user-editable) or template
condition: Option<String>References a condition ID; file included only when condition evaluates true
version: Option<String>File-specific version; component version used if omitted
select: Option<String>Description/purpose required when attr="template"; groups template options
src: Option<String>Source path relative to PDSC; semicolon-separated list for libraries
path: Option<String>For category="header": an incomplete include path for project-relative includes
language: Option<String>Target compiler/assembler (c, cpp, c-cpp, asm, link); inferred from extension if absent
scope: Option<String>Header visibility (public or private); default is public
public: Option<bool>Publishing permission; default true
projectpath: Option<String>IDE project explorer location override
copy: Option<String>Deprecated, use attr="config" instead
Trait Implementations§
Source§impl Clone for ComponentFile
impl Clone for ComponentFile
Source§fn clone(&self) -> ComponentFile
fn clone(&self) -> ComponentFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more