When testing this, get_scsi_info() returns a StrumParseError(VariantNotFound) in the vendor field. I have an external hard drive attached which reports the string Seagate.
Another external drive I have reports the vendor string Samsung, so the set of enum variants is potentially unbounded.
An alternative approach would be to introduce an enum variant for Unrecognised that captures the actual value.
When testing this,
get_scsi_info()
returns aStrumParseError(VariantNotFound)
in thevendor
field. I have an external hard drive attached which reports the stringSeagate
.Another external drive I have reports the vendor string
Samsung
, so the set of enum variants is potentially unbounded.An alternative approach would be to introduce an enum variant for
Unrecognised
that captures the actual value.