rust_ocpp/v2_0_1/messages/
get_certificate_status.rs

1//! GetCertificateStatus
2use crate::v2_0_1::datatypes::ocsp_request_data_type::OCSPRequestDataType;
3use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
4use crate::v2_0_1::enumerations::get_certificate_status_enum_type::GetCertificateStatusEnumType;
5
6/// GetCertificateStatusRequest, sent by the Charging Station to the CSMS.
7#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct GetCertificateStatusRequest {
10    /// Indicates the certificate of which the status isrequested.
11    pub ocsp_request_data: OCSPRequestDataType,
12}
13
14/// GetCertificateStatusResponse, sent by the CSMS to the Charging Station.
15#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
16#[serde(rename_all = "camelCase")]
17pub struct GetCertificateStatusResponse {
18    /// This indicates whether the charging stationwas able to retrieve the OCSP certificate status.
19    pub status: GetCertificateStatusEnumType,
20    /// OCSPResponse class as defined in IETF RFC6960. DER encoded (as defined in IETF RFC 6960), andthen base64 encoded. MAY only be omitted when statusis not Accepted.
21    #[serde(skip_serializing_if = "Option::is_none")]
22    pub ocsp_result: Option<String>,
23    /// Detailed status information.
24    #[serde(skip_serializing_if = "Option::is_none")]
25    pub status_info: Option<StatusInfoType>,
26}