pub struct BatteryData<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub evse_id: i64,
pub production_date: Option<OcppTimestamp>,
pub serial_number: String<50usize>,
pub so_c: f64,
pub so_h: f64,
pub vendor_info: Option<String<500usize>>,
}Fields§
§custom_data: Option<CustomDataType>§evse_id: i64Slot number where battery is inserted or removed.
production_date: Option<OcppTimestamp>Production date of battery.
serial_number: String<50usize>Serial number of battery.
so_c: f64State of charge
so_h: f64State of health
vendor_info: Option<String<500usize>>Vendor-specific info from battery in undefined format.
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for BatteryData<CustomDataType>
impl<CustomDataType: Clone> Clone for BatteryData<CustomDataType>
Source§fn clone(&self) -> BatteryData<CustomDataType>
fn clone(&self) -> BatteryData<CustomDataType>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<CustomDataType: Debug> Debug for BatteryData<CustomDataType>
impl<CustomDataType: Debug> Debug for BatteryData<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for BatteryData<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for BatteryData<CustomDataType>where
CustomDataType: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<CustomDataType: PartialEq> PartialEq for BatteryData<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for BatteryData<CustomDataType>
Source§impl<CustomDataType> Serialize for BatteryData<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for BatteryData<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for BatteryData<CustomDataType>
Source§impl<CustomDataType> Validate for BatteryData<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for BatteryData<CustomDataType>
Available on crate feature
validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for BatteryData<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for BatteryData<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for BatteryData<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for BatteryData<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for BatteryData<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for BatteryData<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for BatteryData<CustomDataType>where
CustomDataType: UnwindSafe,
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