pub struct FixedVar<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub duration: Option<f64>,
pub priority: i64,
pub setpoint: f64,
pub start_time: Option<OcppTimestamp>,
pub unit: DERUnitEnum,
}Fields§
§custom_data: Option<CustomDataType>§duration: Option<f64>Duration in seconds that this setting is active.
priority: i64Priority of setting (0=highest)
setpoint: f64The value specifies a target var output interpreted as a signed percentage (-100 to 100). A negative value refers to charging, whereas a positive one refers to discharging. The value type is determined by the unit field.
start_time: Option<OcppTimestamp>Time when this setting becomes active.
unit: DERUnitEnumTrait Implementations§
Source§impl<'de, CustomDataType> Deserialize<'de> for FixedVar<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for FixedVar<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
impl<CustomDataType: PartialEq> StructuralPartialEq for FixedVar<CustomDataType>
Auto Trait Implementations§
impl<CustomDataType> Freeze for FixedVar<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for FixedVar<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for FixedVar<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for FixedVar<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for FixedVar<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for FixedVar<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for FixedVar<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