pub struct ProjectFile {Show 13 fields
pub condition: Option<String>,
pub category: String,
pub language: Option<String>,
pub scope: Option<String>,
pub attr: Option<String>,
pub select: Option<String>,
pub name: String,
pub path: Option<String>,
pub copy: Option<String>,
pub version: Option<String>,
pub src: Option<String>,
pub public: Option<bool>,
pub projectpath: Option<String>,
}Expand description
Represents a PDSC file entry in ProjectFiles
Unlike File, project_files entries follow the full shared PDSC FileType
definition (the same type used for <file> elements under components and APIs).
Fields§
§condition: Option<String>References a condition ID; file included only when condition evaluates true
category: StringFile category (e.g. header, sourceC, doc, library)
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
attr: Option<String>Special handling: config (copied to project, user-editable) or template
select: Option<String>Description/purpose required when attr="template"; groups template options
name: StringFile path relative to the pack root; may be a URL for category="doc"
path: Option<String>For category="header": an incomplete include path for project-relative includes
copy: Option<String>Copy file to project folder; deprecated, use attr="config" instead
version: Option<String>File-specific version
src: Option<String>Source path relative to PDSC; semicolon-separated list for libraries
public: Option<bool>Publishing permission; default true
projectpath: Option<String>IDE project explorer location override
Trait Implementations§
Source§impl Clone for ProjectFile
impl Clone for ProjectFile
Source§fn clone(&self) -> ProjectFile
fn clone(&self) -> ProjectFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more