pub struct SetNetworkProfileRequest {
pub configuration_slot: i32,
pub connection_data: NetworkConnectionProfile,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · B — Provisioning · CSMS → Charging Station · CALL.
Fields§
§configuration_slot: i32Slot in which the configuration should be stored.
connection_data: NetworkConnectionProfileThe connectionData member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl SetNetworkProfileRequest
impl SetNetworkProfileRequest
Sourcepub fn new(
configuration_slot: i32,
connection_data: NetworkConnectionProfile,
) -> Self
pub fn new( configuration_slot: i32, connection_data: NetworkConnectionProfile, ) -> Self
Creates a SetNetworkProfileRequest 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 SetNetworkProfileRequest
impl Clone for SetNetworkProfileRequest
impl Confirmed for SetNetworkProfileRequest
Source§impl Debug for SetNetworkProfileRequest
impl Debug for SetNetworkProfileRequest
Source§impl<'de> Deserialize<'de> for SetNetworkProfileRequest
impl<'de> Deserialize<'de> for SetNetworkProfileRequest
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 SetNetworkProfileRequest
impl PartialEq for SetNetworkProfileRequest
Source§impl Request for SetNetworkProfileRequest
impl Request for SetNetworkProfileRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = SetNetworkProfileResponse
type Response = SetNetworkProfileResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for SetNetworkProfileRequest
Source§impl Serialize for SetNetworkProfileRequest
impl Serialize for SetNetworkProfileRequest
impl StructuralPartialEq for SetNetworkProfileRequest
Source§impl Validate for SetNetworkProfileRequest
impl Validate for SetNetworkProfileRequest
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 SetNetworkProfileRequest
impl Freeze for SetNetworkProfileRequest
impl RefUnwindSafe for SetNetworkProfileRequest
impl Send for SetNetworkProfileRequest
impl Sync for SetNetworkProfileRequest
impl Unpin for SetNetworkProfileRequest
impl UnsafeUnpin for SetNetworkProfileRequest
impl UnwindSafe for SetNetworkProfileRequest
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