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
sourceimpl 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
sourceimpl Clone for DaimlerEcuIdent
impl Clone for DaimlerEcuIdent
sourcefn clone(&self) -> DaimlerEcuIdent
fn clone(&self) -> DaimlerEcuIdent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DaimlerEcuIdent
impl Debug for DaimlerEcuIdent
sourceimpl Ord for DaimlerEcuIdent
impl Ord for DaimlerEcuIdent
sourceimpl PartialEq<DaimlerEcuIdent> for DaimlerEcuIdent
impl PartialEq<DaimlerEcuIdent> for DaimlerEcuIdent
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DaimlerEcuIdent) -> bool
fn ne(&self, other: &DaimlerEcuIdent) -> bool
This method tests for !=
.
sourceimpl PartialOrd<DaimlerEcuIdent> for DaimlerEcuIdent
impl PartialOrd<DaimlerEcuIdent> for DaimlerEcuIdent
sourcefn partial_cmp(&self, other: &DaimlerEcuIdent) -> Option<Ordering>
fn partial_cmp(&self, other: &DaimlerEcuIdent) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Eq for DaimlerEcuIdent
impl StructuralEq for DaimlerEcuIdent
impl StructuralPartialEq for DaimlerEcuIdent
Auto Trait Implementations
impl RefUnwindSafe for DaimlerEcuIdent
impl Send for DaimlerEcuIdent
impl Sync for DaimlerEcuIdent
impl Unpin for DaimlerEcuIdent
impl UnwindSafe for DaimlerEcuIdent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more