pub struct VariableAttribute {
pub type: Option<AttributeEnum>,
pub value: Option<String>,
pub mutability: Option<MutabilityEnum>,
pub persistent: Option<bool>,
pub constant: Option<bool>,
pub custom_data: Option<CustomData>,
}Expand description
Attribute data of a variable.
Fields§
§type: Option<AttributeEnum>§value: Option<String>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.
mutability: Option<MutabilityEnum>§persistent: Option<bool>If true, value will be persistent across system reboots or power down. Default when omitted is false.
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>Trait Implementations§
Source§impl Clone for VariableAttribute
impl Clone for VariableAttribute
Source§impl Debug for VariableAttribute
impl Debug for VariableAttribute
Source§impl Default for VariableAttribute
impl Default for VariableAttribute
Source§impl<'de> Deserialize<'de> for VariableAttribute
impl<'de> Deserialize<'de> for VariableAttribute
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 VariableAttribute
impl PartialEq for VariableAttribute
Source§impl Serialize for VariableAttribute
impl Serialize 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