pub struct VariableAttribute {
pub constant: Option<bool>,
pub custom_data: Option<CustomData>,
pub mutability: Option<MutabilityEnum>,
pub persistent: Option<bool>,
pub type: Option<AttributeEnum>,
pub value: Option<String<2500usize>>,
}Expand description
Attribute data of a variable.
Fields§
§constant: Option<bool>If true, value that will never be changed by the Charging Station at runtime. Default when omitted is false.
custom_data: Option<CustomData>§mutability: Option<MutabilityEnum>§persistent: Option<bool>If true, value will be persistent across system reboots or power down. Default when omitted is false.
type: Option<AttributeEnum>§value: Option<String<2500usize>>Value of the attribute. May only be omitted when mutability is set to ‘WriteOnly’.
The Configuration Variable <<configkey-reporting-value-size,ReportingValueSize>> can be used to limit GetVariableResult.attributeValue, VariableAttribute.value and EventData.actualValue. The max size of these values will always remain equal.
Trait Implementations§
Source§impl Clone for VariableAttribute
impl Clone for VariableAttribute
Source§fn clone(&self) -> VariableAttribute
fn clone(&self) -> VariableAttribute
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 Debug for VariableAttribute
impl Debug for VariableAttribute
impl Eq for VariableAttribute
Source§impl PartialEq for VariableAttribute
impl PartialEq for VariableAttribute
impl StructuralPartialEq for VariableAttribute
Auto Trait Implementations§
impl Freeze for VariableAttribute
impl RefUnwindSafe for VariableAttribute
impl Send for VariableAttribute
impl Sync for VariableAttribute
impl Unpin for VariableAttribute
impl UnsafeUnpin for VariableAttribute
impl UnwindSafe for VariableAttribute
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