1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use crate::{SMBiosStruct, UndefinedStruct};
use std::fmt;
pub struct SMBiosInactive<'a> {
parts: &'a UndefinedStruct,
}
impl<'a> SMBiosStruct<'a> for SMBiosInactive<'a> {
const STRUCT_TYPE: u8 = 126u8;
fn new(parts: &'a UndefinedStruct) -> Self {
Self { parts }
}
fn parts(&self) -> &'a UndefinedStruct {
self.parts
}
}
impl<'a> SMBiosInactive<'a> {}
impl fmt::Debug for SMBiosInactive<'_> {
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt.debug_struct(std::any::type_name::<SMBiosInactive<'_>>())
.field("header", &self.parts.header)
.finish()
}
}