dbc_rs/attribute/attribute_value.rs
1//! [`AttributeValue`].
2
3#[allow(unused_imports)]
4use super::*;
5
6/// Concrete attribute value from BA_ or BA_DEF_DEF_.
7///
8/// Represents the actual value assigned to an attribute.
9#[derive(Debug, Clone, PartialEq)]
10pub enum AttributeValue {
11 /// Integer value (for INT and HEX types)
12 Int(i64),
13 /// Floating-point value (for FLOAT type)
14 Float(f64),
15 /// String value (for STRING and ENUM types)
16 String(AttributeString),
17}