pub struct ProfileDeclaration {
pub tier: u8,
pub uri: String,
pub enabled_features: Option<Vec<u8>>,
pub implementation_id: Option<String>,
}Expand description
Profile declaration from CDDL.
profile-declaration = {
1 => profile-tier, ; tier
2 => profile-uri, ; uri
? 3 => [+ feature-id], ; enabled-features
? 4 => tstr, ; implementation-id
}Fields§
§tier: u8Profile tier: 1=core, 2=enhanced, 3=maximum.
uri: StringProfile URN.
enabled_features: Option<Vec<u8>>Enabled features beyond MTI.
implementation_id: Option<String>Implementation identifier.
Implementations§
Trait Implementations§
Source§impl Clone for ProfileDeclaration
impl Clone for ProfileDeclaration
Source§fn clone(&self) -> ProfileDeclaration
fn clone(&self) -> ProfileDeclaration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileDeclaration
impl Debug for ProfileDeclaration
Source§impl<'de> Deserialize<'de> for ProfileDeclaration
impl<'de> Deserialize<'de> for ProfileDeclaration
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
Auto Trait Implementations§
impl Freeze for ProfileDeclaration
impl RefUnwindSafe for ProfileDeclaration
impl Send for ProfileDeclaration
impl Sync for ProfileDeclaration
impl Unpin for ProfileDeclaration
impl UnsafeUnpin for ProfileDeclaration
impl UnwindSafe for ProfileDeclaration
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