pub struct Api {
pub class: String,
pub group: String,
pub api_version: Option<String>,
pub exclusive: Option<bool>,
pub condition: Option<String>,
pub license_set: Option<String>,
pub changelog: Option<String>,
pub description: Option<String>,
pub files: Option<ApiFiles>,
}Expand description
Represents a PDSC api element
Defines a software API identified by a component class, group, and optional version.
Fields§
§class: StringComponent class identifier
group: StringComponent group identifier
api_version: Option<String>API version; part of the API ID when present
exclusive: Option<bool>If false, multiple implementations of the API may coexist; default is true
condition: Option<String>References a condition ID; this API applies only if the condition is met
license_set: Option<String>References a licenseSet identifier governing usage rights
changelog: Option<String>References a changelog ID with the API change history
description: Option<String>Brief description of the API (max 256 characters)
files: Option<ApiFiles>Header and documentation files that define the API interface
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Api
impl<'de> Deserialize<'de> for Api
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 Api
impl StructuralPartialEq for Api
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnsafeUnpin for Api
impl UnwindSafe for Api
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