pub struct Part {
pub vendor: Option<String>,
pub name: String,
pub class: Option<String>,
pub group: Option<String>,
pub sub: Option<String>,
pub variant: Option<String>,
pub revision: Option<String>,
pub description: Option<String>,
pub features: Vec<Feature>,
pub books: Vec<Book>,
pub image: Option<Image>,
pub environments: Vec<PartEnvironment>,
}Expand description
Represents a PDSC part element
Fields§
§vendor: Option<String>Hardware part vendor name
name: StringHardware part name
class: Option<String>Hardware part class
group: Option<String>Hardware part group
sub: Option<String>Hardware part sub-group
variant: Option<String>Exact commercial part name (variant)
revision: Option<String>Part revision identifier
description: Option<String>Brief part description (max 256 characters)
features: Vec<Feature>Part features and capabilities (0..*)
books: Vec<Book>Documentation files for this part (0..*)
image: Option<Image>Part images (top/bottom/perspective)
environments: Vec<PartEnvironment>IDE-specific tool environments for this part (0..*)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Part
impl<'de> Deserialize<'de> for Part
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 Part
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
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