pub struct ComponentVariable {
pub component: Component,
pub variable: Option<Variable>,
pub custom_data: Option<CustomData>,
}Expand description
Class to report components, variables and variable attributes and characteristics.
The OCPP 2.0.1 ComponentVariable data type.
Fields§
§component: ComponentThe component member.
variable: Option<Variable>The variable member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl ComponentVariable
impl ComponentVariable
Sourcepub fn with_variable(self, value: Variable) -> Self
pub fn with_variable(self, value: Variable) -> Self
Sets the optional variable 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 ComponentVariable
impl Clone for ComponentVariable
Source§fn clone(&self) -> ComponentVariable
fn clone(&self) -> ComponentVariable
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 ComponentVariable
impl Debug for ComponentVariable
Source§impl<'de> Deserialize<'de> for ComponentVariable
impl<'de> Deserialize<'de> for ComponentVariable
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 ComponentVariable
impl PartialEq for ComponentVariable
Source§impl Serialize for ComponentVariable
impl Serialize for ComponentVariable
impl StructuralPartialEq for ComponentVariable
Source§impl Validate for ComponentVariable
impl Validate for ComponentVariable
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 Freeze for ComponentVariable
impl RefUnwindSafe for ComponentVariable
impl Send for ComponentVariable
impl Sync for ComponentVariable
impl Unpin for ComponentVariable
impl UnsafeUnpin for ComponentVariable
impl UnwindSafe for ComponentVariable
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