Struct ecu_diagnostics::kwp2000::DaimlerEcuIdent
source · pub struct DaimlerEcuIdent {
pub part_number: String,
pub ecu_hw_build_week: u8,
pub ecu_hw_build_year: u8,
pub ecu_sw_build_week: u8,
pub ecu_sw_build_year: u8,
pub supplier: u8,
pub diag_info: DiagnosticInfo,
pub ecu_production_year: u8,
pub ecu_production_month: u8,
pub ecu_production_day: u8,
}
Expand description
Identification structure read with [Kwp2000DiagnosticServer::read_daimler_identification]
Fields§
§part_number: String
10 digital part number
ecu_hw_build_week: u8
Week of the year the ECU hardware was produced
ecu_hw_build_year: u8
Year the ECU hardware was produced
ecu_sw_build_week: u8
Week of the year the ECU software was compiled
ecu_sw_build_year: u8
Year the ECU software was compiled
supplier: u8
Unique supplier ID (Who manufactured the ECU)
diag_info: DiagnosticInfo
Diagnostic information of the ECU
ecu_production_year: u8
Year the ECU was manufactured
ecu_production_month: u8
Month of the year the ECU was manufactured
ecu_production_day: u8
Day of the month the ECU was manufactured
Implementations§
source§impl DaimlerEcuIdent
impl DaimlerEcuIdent
sourcepub fn get_production_date_pretty(&self) -> String
pub fn get_production_date_pretty(&self) -> String
Formats the ECU productions date as dd/mm/yy
sourcepub fn get_software_date_pretty(&self) -> String
pub fn get_software_date_pretty(&self) -> String
Formats the ECU software build date as ww/yy
sourcepub fn get_hardware_date_pretty(&self) -> String
pub fn get_hardware_date_pretty(&self) -> String
Formats the ECU hardware build date as ww/yy
Trait Implementations§
source§impl Clone for DaimlerEcuIdent
impl Clone for DaimlerEcuIdent
source§fn clone(&self) -> DaimlerEcuIdent
fn clone(&self) -> DaimlerEcuIdent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DaimlerEcuIdent
impl Debug for DaimlerEcuIdent
source§impl Ord for DaimlerEcuIdent
impl Ord for DaimlerEcuIdent
source§fn cmp(&self, other: &DaimlerEcuIdent) -> Ordering
fn cmp(&self, other: &DaimlerEcuIdent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DaimlerEcuIdent
impl PartialEq for DaimlerEcuIdent
source§fn eq(&self, other: &DaimlerEcuIdent) -> bool
fn eq(&self, other: &DaimlerEcuIdent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DaimlerEcuIdent
impl PartialOrd for DaimlerEcuIdent
source§fn partial_cmp(&self, other: &DaimlerEcuIdent) -> Option<Ordering>
fn partial_cmp(&self, other: &DaimlerEcuIdent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for DaimlerEcuIdent
impl StructuralPartialEq for DaimlerEcuIdent
Auto Trait Implementations§
impl Freeze for DaimlerEcuIdent
impl RefUnwindSafe for DaimlerEcuIdent
impl Send for DaimlerEcuIdent
impl Sync for DaimlerEcuIdent
impl Unpin for DaimlerEcuIdent
impl UnwindSafe for DaimlerEcuIdent
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