Struct mccs_db::Descriptor
source · pub struct Descriptor {
pub name: Option<String>,
pub description: Option<String>,
pub group: Option<String>,
pub code: FeatureCode,
pub ty: ValueType,
pub access: Access,
pub mandatory: bool,
pub interacts_with: Vec<FeatureCode>,
}Expand description
Describes a VCP feature code’s functionality and value format.
Fields§
§name: Option<String>The name of the feature.
description: Option<String>A detailed description of the feature.
group: Option<String>The MCCS grouping this feature belongs to.
code: FeatureCodeThe VCP code of the feature.
ty: ValueTypeThe data type of the feature.
access: AccessWhether the feature can be set, read, or both.
mandatory: boolWhether the feature is required to be supported by the display for MCCS specification compliance.
interacts_with: Vec<FeatureCode>Any other feature codes that this “interacts” with.
Changing this feature’s value may also affect the value of these other listed features.
Trait Implementations§
source§impl Clone for Descriptor
impl Clone for Descriptor
source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a copy 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 Descriptor
impl Debug for Descriptor
source§impl Default for Descriptor
impl Default for Descriptor
source§fn default() -> Descriptor
fn default() -> Descriptor
Returns the “default value” for a type. Read more