Skip to main content

Package

Struct Package 

Source
pub struct Package<'a> {
Show 31 fields pub name: String, pub vendor: String, pub schema_version: String, pub d_core: Option<String>, pub d_vendor: Option<String>, pub d_name: Option<String>, pub t_compiler: Option<String>, pub description: Description, pub eccn: Option<Eccn>, pub url: String, pub support_contact: Option<String>, pub license: Option<String>, pub license_sets: Option<LicenseSets>, pub dominate: Option<Dominate>, pub requirements: Option<Requirements>, pub repository: Option<Repository>, pub releases: Releases, pub changelogs: Option<Changelogs>, pub keywords: Option<Keywords>, pub environments: Option<Environments>, pub generators: Option<Generators>, pub boards: Option<Boards>, pub parts: Option<Parts>, pub taxonomy: Option<Taxonomy>, pub part_taxonomy: Option<PartTaxonomy>, pub apis: Option<Apis>, pub devices: Option<Devices<'a>>, pub conditions: Option<Conditions>, pub examples: Option<Examples>, pub csolution: Option<Csolution>, pub components: Option<Components>,
}
Expand description

Represents PDSC Package which is the root element of the PDSC file

Fields§

§name: String

Name of the software pack

§vendor: String

Name of the software pack supplier/vendor

§schema_version: String

PDSC schema version; valid values defined by PDSC schema versioning

§d_core: Option<String>

Restricts pack to a specific core; valid values: DcoreEnum

§d_vendor: Option<String>

Restricts pack to a specific silicon vendor; valid values: DeviceVendorEnum

§d_name: Option<String>

Restricts pack to a specific device name; wildcards allowed

§t_compiler: Option<String>

Restricts pack to a specific toolchain; valid values: CompilerEnumType

§description: Description

Brief description of the software pack

§eccn: Option<Eccn>

Export Control Classification Numbers for the EU and US

§url: String

URL or file URI of the software pack

§support_contact: Option<String>

URL or e-mail for users to get support for the Pack content

§license: Option<String>

Path to the license document of the Pack

§license_sets: Option<LicenseSets>

Listing containing the collection of license fils

§dominate: Option<Dominate>

A pack that has dominate attribute overrules other packs

§requirements: Option<Requirements>

Specifies other CMSIS-Packs, programming languages, and compilers required by pack components

§repository: Option<Repository>

HTTPS URL of a public repository that the pack originates from

§releases: Releases

Version release history with brief information about a software pack

§changelogs: Option<Changelogs>

Section describing one or more changelog files

§keywords: Option<Keywords>

Keywords that might be used to find a software pack

§environments: Option<Environments>

Grouping elements for environments information.

§generators: Option<Generators>

Specifies generator tools that have been used to generate components

§boards: Option<Boards>

Development boards described in this pack

§parts: Option<Parts>

Hardware parts described in this pack

§taxonomy: Option<Taxonomy>

Component class and group taxonomy for this pack

§part_taxonomy: Option<PartTaxonomy>

Hardware part class and group taxonomy for this pack

§apis: Option<Apis>

Application programming interfaces defined by this pack

§devices: Option<Devices<'a>>

The device family, the devices, and variants

§conditions: Option<Conditions>

Conditions defined for use throughout this pack

§examples: Option<Examples>

Example projects included in this pack

§csolution: Option<Csolution>

Software layers and project templates for csolution-based projects

§components: Option<Components>

Components published by this pack

Implementations§

Source§

impl<'a> Package<'a>

Source

pub fn new(document: &'a Document<'_>) -> Result<Self, Error>

Parses a PDSC XML document into a Package.

§Errors

Returns Error::SerdeRoxmltree if the document cannot be deserialized, or Error::Family/Error::Debug if sequence or statement parsing fails.

Trait Implementations§

Source§

impl<'a> Clone for Package<'a>

Source§

fn clone(&self) -> Package<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Package<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for Package<'a>

Source§

fn default() -> Package<'a>

Returns the “default value” for a type. Read more
Source§

impl<'de: 'a, 'a> Deserialize<'de> for Package<'a>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'a> Eq for Package<'a>

Source§

impl<'a> PartialEq for Package<'a>

Source§

fn eq(&self, other: &Package<'a>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'a> Serialize for Package<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> StructuralPartialEq for Package<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Package<'a>

§

impl<'a> RefUnwindSafe for Package<'a>

§

impl<'a> Send for Package<'a>

§

impl<'a> Sync for Package<'a>

§

impl<'a> Unpin for Package<'a>

§

impl<'a> UnsafeUnpin for Package<'a>

§

impl<'a> UnwindSafe for Package<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.