Struct mccs_db::Descriptor
[−]
[src]
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>, }
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: FeatureCode
The VCP code of the feature.
ty: ValueType
The data type of the feature.
access: Access
Whether the feature can be set, read, or both.
mandatory: bool
Whether 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
impl Debug for Descriptor
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for Descriptor
[src]
fn default() -> Descriptor
[src]
Returns the "default value" for a type. Read more
impl Clone for Descriptor
[src]
fn clone(&self) -> Descriptor
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more