File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,6 +189,10 @@ pub struct MemoryModule {
189189 pub speed : String ,
190190 /// Physical location of the memory module.
191191 pub location : String ,
192+ /// Manufacturer of the memory module.
193+ pub manufacturer : String ,
194+ /// Serial number of the memory module.
195+ pub serial : String ,
192196}
193197
194198/// Represents storage information.
@@ -1192,12 +1196,16 @@ impl ServerInfo {
11921196 let type_ = Self :: extract_dmidecode_value ( text, "Type" ) ?;
11931197 let speed = Self :: extract_dmidecode_value ( text, "Speed" ) ?;
11941198 let location = Self :: extract_dmidecode_value ( text, "Locator" ) ?;
1199+ let manufacturer = Self :: extract_dmidecode_value ( text, "Manufacturer" ) ?;
1200+ let serial = Self :: extract_dmidecode_value ( text, "Serial Number" ) ?;
11951201
11961202 Ok ( MemoryModule {
11971203 size,
11981204 type_,
11991205 speed,
12001206 location,
1207+ manufacturer,
1208+ serial,
12011209 } )
12021210 }
12031211
You can’t perform that action at this time.
0 commit comments