pub struct VIN {
pub vin: String,
pub country: String,
pub manufacturer: String,
pub region: String,
pub valid_checksum: Result<(), ChecksumErrorInfo>,
}
Expand description
Holds parsed information about the vehicle
Fields§
§vin: String
Copy of provided VIN number
country: String
Country of the manufacturer
manufacturer: String
Name of the manufacturer
region: String
Region of the manufacturer
valid_checksum: Result<(), ChecksumErrorInfo>
Whether checksum of the VIN is valid
Implementations§
Source§impl VIN
impl VIN
Sourcepub fn small_manufacturer(&self) -> bool
pub fn small_manufacturer(&self) -> bool
Returns whether manufacturer is small and does not have its own ID in VIN
Sourcepub fn region_code(&self) -> &str
pub fn region_code(&self) -> &str
Returns region VIN code
Sourcepub fn country_code(&self) -> &str
pub fn country_code(&self) -> &str
Returns country VIN code
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VIN
impl RefUnwindSafe for VIN
impl Send for VIN
impl Sync for VIN
impl Unpin for VIN
impl UnwindSafe for VIN
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