ocpp/v2_1/datatype/hysteresis
OCPP 2.1 Hysteresis data type (schema HysteresisType).
to_json/decoder map to/from its OCPP-J JSON object; new (when
present) builds a value from the required fields only.
Types
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
hysteresis_delay | Float | — | Delay in seconds, once grid parameter within HysteresisLow and HysteresisHigh, for the EV to return to normal operation after a grid event. |
hysteresis_gradient | Float | — | Set default rate of change (ramp rate %/s) for the EV to return to normal operation after a grid event |
hysteresis_high | Float | — | High value for return to normal operation after a grid event, in absolute value. This value adopts the same unit as defined by yUnit |
hysteresis_low | Float | — | Low value for return to normal operation after a grid event, in absolute value. This value adopts the same unit as defined by yUnit |
Schema: HysteresisType
pub type Hysteresis {
Hysteresis(
custom_data: option.Option(custom_data.CustomData),
hysteresis_delay: option.Option(Float),
hysteresis_gradient: option.Option(Float),
hysteresis_high: option.Option(Float),
hysteresis_low: option.Option(Float),
)
}
Constructors
-
Hysteresis( custom_data: option.Option(custom_data.CustomData), hysteresis_delay: option.Option(Float), hysteresis_gradient: option.Option(Float), hysteresis_high: option.Option(Float), hysteresis_low: option.Option(Float), )
Values
pub fn decoder() -> decode.Decoder(Hysteresis)
Decode a Hysteresis from its OCPP-J JSON object, enforcing schema constraints.
pub fn new() -> Hysteresis
Construct a Hysteresis from its required fields, with every optional field set to None.
pub fn to_json(value: Hysteresis) -> json.Json
Encode a Hysteresis to its OCPP-J JSON object.