pub struct LimitMaxDischarge {
pub priority: i32,
pub pct_max_discharge_power: Option<Decimal>,
pub power_monitoring_must_trip: Option<DERCurve>,
pub start_time: Option<DateTime>,
pub duration: Option<Decimal>,
pub custom_data: Option<CustomData>,
}Expand description
The OCPP 2.1 LimitMaxDischarge data type.
Fields§
§priority: i32Priority of setting (0=highest)
pct_max_discharge_power: Option<Decimal>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>The powerMonitoringMustTrip member.
start_time: Option<DateTime>Time when this setting becomes active
duration: Option<Decimal>Duration in seconds that this setting is active
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl LimitMaxDischarge
impl LimitMaxDischarge
Sourcepub fn with_pct_max_discharge_power(self, value: impl Into<Decimal>) -> Self
pub fn with_pct_max_discharge_power(self, value: impl Into<Decimal>) -> Self
Sets the optional pctMaxDischargePower field.
Sourcepub fn with_power_monitoring_must_trip(self, value: DERCurve) -> Self
pub fn with_power_monitoring_must_trip(self, value: DERCurve) -> Self
Sets the optional powerMonitoringMustTrip field.
Sourcepub fn with_start_time(self, value: impl Into<DateTime>) -> Self
pub fn with_start_time(self, value: impl Into<DateTime>) -> Self
Sets the optional startTime field.
Sourcepub fn with_duration(self, value: impl Into<Decimal>) -> Self
pub fn with_duration(self, value: impl Into<Decimal>) -> Self
Sets the optional duration field.
Sourcepub fn with_custom_data(self, value: CustomData) -> Self
pub fn with_custom_data(self, value: CustomData) -> Self
Sets the optional customData field.
Trait Implementations§
Source§impl Clone for LimitMaxDischarge
impl Clone for LimitMaxDischarge
Source§impl Debug for LimitMaxDischarge
impl Debug for LimitMaxDischarge
Source§impl<'de> Deserialize<'de> for LimitMaxDischarge
impl<'de> Deserialize<'de> for LimitMaxDischarge
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 LimitMaxDischarge
impl PartialEq for LimitMaxDischarge
Source§impl Serialize for LimitMaxDischarge
impl Serialize for LimitMaxDischarge
impl StructuralPartialEq for LimitMaxDischarge
Source§impl Validate for LimitMaxDischarge
impl Validate for LimitMaxDischarge
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Forget for LimitMaxDischarge
impl Freeze for LimitMaxDischarge
impl Move for LimitMaxDischarge
impl RefUnwindSafe for LimitMaxDischarge
impl Send for LimitMaxDischarge
impl Sync for LimitMaxDischarge
impl Unpin for LimitMaxDischarge
impl UnsafeUnpin for LimitMaxDischarge
impl UnwindSafe for LimitMaxDischarge
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