redfish_codegen/models/component_integrity/v1_2_1/
component_integrity_type.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ComponentIntegrityType {
6    /// This value shall indicate the integrity information is obtained through the Security Protocol and Data Model (SPDM) protocol as defined in DMTF DSP0274.
7    SPDM,
8    /// This value shall indicate the integrity information is related to a Trusted Platform Module (TPM) as defined by the Trusted Computing Group (TCG).
9    TPM,
10    /// This value shall indicate the integrity information is OEM-specific and the OEM section may include additional information.
11    OEM,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for ComponentIntegrityType {
16     fn default() -> ComponentIntegrityType {
17        ComponentIntegrityType::SPDM
18     }
19}
20
21impl crate::Metadata<'static> for ComponentIntegrityType {
22    const JSON_SCHEMA: &'static str = "ComponentIntegrity.v1_2_1.json";
23}