rust_ocpp/v2_0_1/messages/
get_installed_certificate_ids.rs

1//! GetInstalledCertificateIds
2use crate::v2_0_1::datatypes::certificate_hash_data_chain_type::CertificateHashDataChainType;
3use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
4use crate::v2_0_1::enumerations::get_certificate_id_use_enum_type::GetCertificateIdUseEnumType;
5use crate::v2_0_1::enumerations::get_installed_certificate_status_enum_type::GetInstalledCertificateStatusEnumType;
6
7/// Used by the CSMS to request an overview of the installed certificates on a Charging Station.
8#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
9#[serde(rename_all = "camelCase")]
10pub struct GetInstalledCertificateIdsRequest {
11    /// Indicates the type of certificates requested.When omitted, all certificate types are requested.
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub certificate_type: Option<Vec<GetCertificateIdUseEnumType>>,
14}
15
16/// Response to a GetInstalledCertificateIDsRequest.
17#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
18#[serde(rename_all = "camelCase")]
19pub struct GetInstalledCertificateIdsResponse {
20    /// Charging Station indicates if it can process therequest
21    pub status: GetInstalledCertificateStatusEnumType,
22    /// The Charging Station includes the Certificateinformation for each available certificate.
23    #[serde(skip_serializing_if = "Option::is_none")]
24    pub certificate_hash_data_chain: Option<Vec<CertificateHashDataChainType>>,
25    /// Detailed status information.
26    #[serde(skip_serializing_if = "Option::is_none")]
27    pub status_info: Option<StatusInfoType>,
28}