pub struct ProductIdentity<'a> {
pub vendor: &'a str,
pub product: &'a str,
pub model: Option<&'a str>,
pub product_suffix: &'a str,
pub revision: &'a str,
}Expand description
A borrowed, display-oriented view of an optical product identity. Raw vendor/product/revision values are preserved; parsing never changes flash compatibility.
Fields§
§vendor: &'a strRaw manufacturer/vendor identification.
product: &'a strRaw product identification, including media class and any OEM suffix.
model: Option<&'a str>Drive model: the first product token after any standard media-class prefixes.
product_suffix: &'a strRemaining product context, such as PP-100 or a board variant letter.
revision: &'a strRaw firmware revision.
Implementations§
Source§impl<'a> ProductIdentity<'a>
impl<'a> ProductIdentity<'a>
Sourcepub fn from_fields(vendor: &'a str, product: &'a str, revision: &'a str) -> Self
pub fn from_fields(vendor: &'a str, product: &'a str, revision: &'a str) -> Self
Interpret separate INQUIRY/descriptor fields without filename heuristics.
Trait Implementations§
Source§impl<'a> Clone for ProductIdentity<'a>
impl<'a> Clone for ProductIdentity<'a>
impl<'a> Copy for ProductIdentity<'a>
Source§impl<'a> Debug for ProductIdentity<'a>
impl<'a> Debug for ProductIdentity<'a>
impl<'a> Eq for ProductIdentity<'a>
Source§impl<'a> PartialEq for ProductIdentity<'a>
impl<'a> PartialEq for ProductIdentity<'a>
impl<'a> StructuralPartialEq for ProductIdentity<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProductIdentity<'a>
impl<'a> RefUnwindSafe for ProductIdentity<'a>
impl<'a> Send for ProductIdentity<'a>
impl<'a> Sync for ProductIdentity<'a>
impl<'a> Unpin for ProductIdentity<'a>
impl<'a> UnsafeUnpin for ProductIdentity<'a>
impl<'a> UnwindSafe for ProductIdentity<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more