pub struct VariableAttribute<CustomDataType = NoCustomData> {
pub constant: Option<bool>,
pub custom_data: Option<CustomDataType>,
pub mutability: Option<MutabilityEnum>,
pub persistent: Option<bool>,
pub type: Option<AttributeEnum>,
pub value: Option<String>,
}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<CustomDataType>§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>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<CustomDataType: Clone> Clone for VariableAttribute<CustomDataType>
impl<CustomDataType: Clone> Clone for VariableAttribute<CustomDataType>
Source§fn clone(&self) -> VariableAttribute<CustomDataType>
fn clone(&self) -> VariableAttribute<CustomDataType>
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<CustomDataType: Debug> Debug for VariableAttribute<CustomDataType>
impl<CustomDataType: Debug> Debug for VariableAttribute<CustomDataType>
Source§impl<'de, CustomDataType> Deserialize<'de> for VariableAttribute<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for VariableAttribute<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: Eq> Eq for VariableAttribute<CustomDataType>
Source§impl<CustomDataType: PartialEq> PartialEq for VariableAttribute<CustomDataType>
impl<CustomDataType: PartialEq> PartialEq for VariableAttribute<CustomDataType>
Source§impl<CustomDataType> Serialize for VariableAttribute<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType> Serialize for VariableAttribute<CustomDataType>where
CustomDataType: Serialize,
impl<CustomDataType: PartialEq> StructuralPartialEq for VariableAttribute<CustomDataType>
Source§impl<CustomDataType> Validate for VariableAttribute<CustomDataType>
Available on crate features alloc and validate only.
impl<CustomDataType> Validate for VariableAttribute<CustomDataType>
Available on crate features
alloc and validate only.Auto Trait Implementations§
impl<CustomDataType> Freeze for VariableAttribute<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for VariableAttribute<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for VariableAttribute<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for VariableAttribute<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for VariableAttribute<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for VariableAttribute<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for VariableAttribute<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