pub struct GetVariableData {
pub component: Component,
pub variable: Variable,
pub attribute_type: Option<Attribute>,
pub custom_data: Option<CustomData>,
}Expand description
Class to hold parameters for GetVariables request.
The OCPP 2.1 GetVariableData data type.
Fields§
§component: ComponentThe component member.
variable: VariableThe variable member.
attribute_type: Option<Attribute>The attributeType member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl GetVariableData
impl GetVariableData
Sourcepub fn new(component: Component, variable: Variable) -> Self
pub fn new(component: Component, variable: Variable) -> Self
Creates a GetVariableData from its required fields.
Sourcepub fn with_attribute_type(self, value: Attribute) -> Self
pub fn with_attribute_type(self, value: Attribute) -> Self
Sets the optional attributeType 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 GetVariableData
impl Clone for GetVariableData
Source§impl Debug for GetVariableData
impl Debug for GetVariableData
Source§impl<'de> Deserialize<'de> for GetVariableData
impl<'de> Deserialize<'de> for GetVariableData
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 GetVariableData
impl PartialEq for GetVariableData
Source§impl Serialize for GetVariableData
impl Serialize for GetVariableData
impl StructuralPartialEq for GetVariableData
Source§impl Validate for GetVariableData
impl Validate for GetVariableData
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 GetVariableData
impl Freeze for GetVariableData
impl Move for GetVariableData
impl RefUnwindSafe for GetVariableData
impl Send for GetVariableData
impl Sync for GetVariableData
impl Unpin for GetVariableData
impl UnsafeUnpin for GetVariableData
impl UnwindSafe for GetVariableData
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