pub struct AttributeDef {
pub id: u16,
pub name: &'static str,
pub data_type: DataType,
pub writable: bool,
pub report: Option<ReportDefault>,
}Expand description
An attribute.
Fields§
§id: u16Attribute id.
name: &'static strsnake_case name.
data_type: DataTypeIts type.
writable: boolWritable.
report: Option<ReportDefault>The reporting configuration a host writes by default, if the attribute is worth reporting.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttributeDef
impl RefUnwindSafe for AttributeDef
impl Send for AttributeDef
impl Sync for AttributeDef
impl Unpin for AttributeDef
impl UnsafeUnpin for AttributeDef
impl UnwindSafe for AttributeDef
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