pub struct EVPowerScheduleEntry {
pub duration: i64,
pub power: f64,
pub custom_data: Option<CustomData>,
}Expand description
(2.1) An entry in schedule of the energy amount over time that EV is willing to discharge. A negative value indicates the willingness to discharge under specific conditions, a positive value indicates that the EV currently is not able to offer energy to discharge.
Fields§
§duration: i64The duration of this entry.
power: f64Defines maximum amount of power for the duration of this EVPowerScheduleEntry to be discharged from the EV battery through EVSE power outlet. Negative values are used for discharging.
custom_data: Option<CustomData>Trait Implementations§
Source§impl Clone for EVPowerScheduleEntry
impl Clone for EVPowerScheduleEntry
Source§impl Debug for EVPowerScheduleEntry
impl Debug for EVPowerScheduleEntry
Source§impl<'de> Deserialize<'de> for EVPowerScheduleEntry
impl<'de> Deserialize<'de> for EVPowerScheduleEntry
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 PartialEq for EVPowerScheduleEntry
impl PartialEq for EVPowerScheduleEntry
Source§impl Serialize for EVPowerScheduleEntry
impl Serialize for EVPowerScheduleEntry
impl StructuralPartialEq for EVPowerScheduleEntry
Auto Trait Implementations§
impl Freeze for EVPowerScheduleEntry
impl RefUnwindSafe for EVPowerScheduleEntry
impl Send for EVPowerScheduleEntry
impl Sync for EVPowerScheduleEntry
impl Unpin for EVPowerScheduleEntry
impl UnsafeUnpin for EVPowerScheduleEntry
impl UnwindSafe for EVPowerScheduleEntry
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