pub struct SetVariablesResponse {
pub set_variable_result: Vec<SetVariableResult>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · B — Provisioning · CSMS → Charging Station · CALL.
Fields§
§set_variable_result: Vec<SetVariableResult>The setVariableResult member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl SetVariablesResponse
impl SetVariablesResponse
Sourcepub fn new(set_variable_result: Vec<SetVariableResult>) -> Self
pub fn new(set_variable_result: Vec<SetVariableResult>) -> Self
Creates a SetVariablesResponse from its required fields.
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 SetVariablesResponse
impl Clone for SetVariablesResponse
Source§fn clone(&self) -> SetVariablesResponse
fn clone(&self) -> SetVariablesResponse
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 SetVariablesResponse
impl Debug for SetVariablesResponse
Source§impl<'de> Deserialize<'de> for SetVariablesResponse
impl<'de> Deserialize<'de> for SetVariablesResponse
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 SetVariablesResponse
impl PartialEq for SetVariablesResponse
impl Response for SetVariablesResponse
impl Sealed for SetVariablesResponse
Source§impl Serialize for SetVariablesResponse
impl Serialize for SetVariablesResponse
impl StructuralPartialEq for SetVariablesResponse
Source§impl Validate for SetVariablesResponse
impl Validate for SetVariablesResponse
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 SetVariablesResponse
impl RefUnwindSafe for SetVariablesResponse
impl Send for SetVariablesResponse
impl Sync for SetVariablesResponse
impl Unpin for SetVariablesResponse
impl UnsafeUnpin for SetVariablesResponse
impl UnwindSafe for SetVariablesResponse
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