pub struct Example {
pub name: String,
pub folder: String,
pub archive: Option<String>,
pub doc: String,
pub version: Option<String>,
pub public: Option<bool>,
pub description: String,
pub boards: Vec<ExampleBoard>,
pub project: ExampleProject,
pub attributes: Option<ExampleAttributes>,
}Expand description
Represents a PDSC example element
Defines a single example project, its boards, tool environments, and classification attributes.
Fields§
§name: StringShort example identifier
folder: StringPath to the example folder relative to the pack root
archive: Option<String>Archive filename containing the example files
doc: StringPath to the example documentation file
version: Option<String>Example version
public: Option<bool>Publishing permission; default true
description: StringBrief description of the example
boards: Vec<ExampleBoard>Target boards for this example (0..*)
project: ExampleProjectIDE/tool project files for this example
attributes: Option<ExampleAttributes>Classification attributes for discovery and filtering
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Example
impl<'de> Deserialize<'de> for Example
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 Example
impl StructuralPartialEq for Example
Auto Trait Implementations§
impl Freeze for Example
impl RefUnwindSafe for Example
impl Send for Example
impl Sync for Example
impl Unpin for Example
impl UnsafeUnpin for Example
impl UnwindSafe for Example
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