pub struct ReportData {
pub component: Component,
pub variable: Variable,
pub variable_attribute: Vec<VariableAttribute>,
pub variable_characteristics: Option<VariableCharacteristics>,
pub custom_data: Option<CustomData>,
}Expand description
Class to report components, variables and variable attributes and characteristics.
The OCPP 2.1 ReportData data type.
Fields§
§component: ComponentThe component member.
variable: VariableThe variable member.
variable_attribute: Vec<VariableAttribute>The variableAttribute member.
variable_characteristics: Option<VariableCharacteristics>The variableCharacteristics member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl ReportData
impl ReportData
Sourcepub fn new(
component: Component,
variable: Variable,
variable_attribute: Vec<VariableAttribute>,
) -> Self
pub fn new( component: Component, variable: Variable, variable_attribute: Vec<VariableAttribute>, ) -> Self
Creates a ReportData from its required fields.
Sourcepub fn with_variable_characteristics(
self,
value: VariableCharacteristics,
) -> Self
pub fn with_variable_characteristics( self, value: VariableCharacteristics, ) -> Self
Sets the optional variableCharacteristics field.
Sourcepub fn with_custom_data(self, value: CustomData) -> Self
pub fn with_custom_data(self, value: CustomData) -> Self
Sets the optional customData field.
Trait Implementations§
Source§impl Clone for ReportData
impl Clone for ReportData
Source§impl Debug for ReportData
impl Debug for ReportData
Source§impl<'de> Deserialize<'de> for ReportData
impl<'de> Deserialize<'de> for ReportData
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 ReportData
impl PartialEq for ReportData
Source§impl Serialize for ReportData
impl Serialize for ReportData
impl StructuralPartialEq for ReportData
Source§impl Validate for ReportData
impl Validate for ReportData
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Forget for ReportData
impl Freeze for ReportData
impl RefUnwindSafe for ReportData
impl Send for ReportData
impl Sync for ReportData
impl Unpin for ReportData
impl UnsafeUnpin for ReportData
impl UnwindSafe for ReportData
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