Skip to main content

dbc_codegen2/ir/
value_description.rs

1use can_dbc::ValDescription as ParsedValDescription;
2
3#[derive(Debug, Clone)]
4pub struct ValueDescription {
5    pub value: i64,
6    pub description: String,
7}
8
9impl From<ParsedValDescription> for ValueDescription {
10    fn from(value: ParsedValDescription) -> Self {
11        Self {
12            value: value.id,
13            description: value.description,
14        }
15    }
16}