pub struct CertificateHashData {
pub hash_algorithm: HashAlgorithm,
pub issuer_name_hash: String,
pub issuer_key_hash: String,
pub serial_number: String,
pub custom_data: Option<CustomData>,
}Expand description
The OCPP 2.1 CertificateHashData data type.
Fields§
§hash_algorithm: HashAlgorithmThe hashAlgorithm member.
issuer_name_hash: StringThe hash of the issuer’s distinguished name (DN), that must be calculated over the DER encoding of the issuer’s name field in the certificate being checked.
issuer_key_hash: StringThe hash of the DER encoded public key: the value (excluding tag and length) of the subject public key field in the issuer’s certificate.
serial_number: StringThe string representation of the hexadecimal value of the serial number without the prefix “0x” and without leading zeroes.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl CertificateHashData
impl CertificateHashData
Sourcepub fn new(
hash_algorithm: HashAlgorithm,
issuer_name_hash: impl Into<String>,
issuer_key_hash: impl Into<String>,
serial_number: impl Into<String>,
) -> Self
pub fn new( hash_algorithm: HashAlgorithm, issuer_name_hash: impl Into<String>, issuer_key_hash: impl Into<String>, serial_number: impl Into<String>, ) -> Self
Creates a CertificateHashData 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 CertificateHashData
impl Clone for CertificateHashData
Source§impl Debug for CertificateHashData
impl Debug for CertificateHashData
Source§impl<'de> Deserialize<'de> for CertificateHashData
impl<'de> Deserialize<'de> for CertificateHashData
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 CertificateHashData
impl PartialEq for CertificateHashData
Source§impl Serialize for CertificateHashData
impl Serialize for CertificateHashData
impl StructuralPartialEq for CertificateHashData
Source§impl Validate for CertificateHashData
impl Validate for CertificateHashData
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 CertificateHashData
impl Freeze for CertificateHashData
impl Move for CertificateHashData
impl RefUnwindSafe for CertificateHashData
impl Send for CertificateHashData
impl Sync for CertificateHashData
impl Unpin for CertificateHashData
impl UnsafeUnpin for CertificateHashData
impl UnwindSafe for CertificateHashData
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