redfish_codegen/models/key/v1_2_0/
key_type.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum KeyType {
6    /// This value shall indicate the format of the key is defined by one of the NVMe specifications.
7    NVMeoF,
8    /// This value shall indicate the format of the key is defined by one of the SSH public key formats as defined in, but not limited to, RFC4253, RFC4716, or RFC8709. Added in version v1_1_0.
9    SSH,
10}
11
12#[allow(clippy::derivable_impls)]
13impl Default for KeyType {
14     fn default() -> KeyType {
15        KeyType::NVMeoF
16     }
17}
18
19impl crate::Metadata<'static> for KeyType {
20    const JSON_SCHEMA: &'static str = "Key.v1_2_0.json";
21}