pub struct LimitMaxDischarge<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub duration: Option<f64>,
pub pct_max_discharge_power: Option<f64>,
pub power_monitoring_must_trip: Option<DERCurve<CustomDataType>>,
pub priority: i64,
pub start_time: Option<OcppTimestamp>,
}Fields§
§custom_data: Option<CustomDataType>§duration: Option<f64>Duration in seconds that this setting is active
pct_max_discharge_power: Option<f64>Only for PowerMonitoring. + The value specifies a percentage (0 to 100) of the rated maximum discharge power of EV. The PowerMonitoring curve becomes active when power exceeds this percentage.
power_monitoring_must_trip: Option<DERCurve<CustomDataType>>§priority: i64Priority of setting (0=highest)
start_time: Option<OcppTimestamp>Time when this setting becomes active
Trait Implementations§
Source§impl<CustomDataType: Clone> Clone for LimitMaxDischarge<CustomDataType>
impl<CustomDataType: Clone> Clone for LimitMaxDischarge<CustomDataType>
Source§fn clone(&self) -> LimitMaxDischarge<CustomDataType>
fn clone(&self) -> LimitMaxDischarge<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 LimitMaxDischarge<CustomDataType>
impl<CustomDataType: Debug> Debug for LimitMaxDischarge<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for LimitMaxDischarge<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for LimitMaxDischarge<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 LimitMaxDischarge<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for LimitMaxDischarge<CustomDataType>
Source§impl<CustomDataType> Serialize for LimitMaxDischarge<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for LimitMaxDischarge<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for LimitMaxDischarge<CustomDataType>
Source§impl<CustomDataType> Validate for LimitMaxDischarge<CustomDataType>
Available on crate feature validate only.
impl<CustomDataType> Validate for LimitMaxDischarge<CustomDataType>
Available on crate feature
validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for LimitMaxDischarge<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for LimitMaxDischarge<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for LimitMaxDischarge<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for LimitMaxDischarge<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for LimitMaxDischarge<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for LimitMaxDischarge<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for LimitMaxDischarge<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