pub struct ApiFile {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 the API files group
Attributes follow the PDSC FileType definition.
Fields§
§name: StringFile path relative to the pack root
category: StringFile category (e.g. header, include, doc, sourceC)
attr: Option<String>File attribute (e.g. config, template)
condition: Option<String>References a condition ID; file is included only if condition is met
version: Option<String>File version
select: Option<String>Selection string used when multiple template files are offered
src: Option<String>Source file for generated or templated files
path: Option<String>Alternate path for the file
language: Option<String>Programming language associated with the file
scope: Option<String>Scope of the file within the project
public: Option<bool>Publishing permission; default true
projectpath: Option<String>Project-relative path override for the file
copy: Option<String>Deprecated, use attr="config" instead
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiFile
impl<'de> Deserialize<'de> for ApiFile
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
impl Eq for ApiFile
impl StructuralPartialEq for ApiFile
Auto Trait Implementations§
impl Freeze for ApiFile
impl RefUnwindSafe for ApiFile
impl Send for ApiFile
impl Sync for ApiFile
impl Unpin for ApiFile
impl UnsafeUnpin for ApiFile
impl UnwindSafe for ApiFile
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