pub struct SendLocalListRequest {
pub version_number: i32,
pub update_type: Update,
pub local_authorization_list: Option<Vec<AuthorizationData>>,
pub custom_data: Option<CustomData>,
}Expand description
Spec: OCPP 2.1 · D — Local Authorization List Management · CSMS → Charging Station · CALL.
Fields§
§version_number: i32In case of a full update this is the version number of the full list. In case of a differential update it is the version number of the list after the update has been applied.
update_type: UpdateThe updateType member.
The localAuthorizationList member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl SendLocalListRequest
impl SendLocalListRequest
Sourcepub fn new(version_number: i32, update_type: Update) -> Self
pub fn new(version_number: i32, update_type: Update) -> Self
Creates a SendLocalListRequest from its required fields.
Sets the optional localAuthorizationList 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 SendLocalListRequest
impl Clone for SendLocalListRequest
impl Confirmed for SendLocalListRequest
Source§impl Debug for SendLocalListRequest
impl Debug for SendLocalListRequest
Source§impl<'de> Deserialize<'de> for SendLocalListRequest
impl<'de> Deserialize<'de> for SendLocalListRequest
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 SendLocalListRequest
impl PartialEq for SendLocalListRequest
Source§impl Request for SendLocalListRequest
impl Request for SendLocalListRequest
Source§const KIND: MessageKind = MessageKind::Call
const KIND: MessageKind = MessageKind::Call
CALL or SEND.Source§type Response = SendLocalListResponse
type Response = SendLocalListResponse
The matching response payload, or
NoResponse for a SEND.impl Sealed for SendLocalListRequest
Source§impl Serialize for SendLocalListRequest
impl Serialize for SendLocalListRequest
impl StructuralPartialEq for SendLocalListRequest
Source§impl Validate for SendLocalListRequest
impl Validate for SendLocalListRequest
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 SendLocalListRequest
impl Freeze for SendLocalListRequest
impl RefUnwindSafe for SendLocalListRequest
impl Send for SendLocalListRequest
impl Sync for SendLocalListRequest
impl Unpin for SendLocalListRequest
impl UnsafeUnpin for SendLocalListRequest
impl UnwindSafe for SendLocalListRequest
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