redfish_codegen/models/network_device_function/v1_9_0/
authentication_method.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum AuthenticationMethod {
6    /// No iSCSI authentication is used.
7    None,
8    /// iSCSI Challenge Handshake Authentication Protocol (CHAP) authentication is used.
9    CHAP,
10    /// iSCSI Mutual Challenge Handshake Authentication Protocol (CHAP) authentication is used.
11    MutualCHAP,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for AuthenticationMethod {
16     fn default() -> AuthenticationMethod {
17        AuthenticationMethod::None
18     }
19}
20
21impl crate::Metadata<'static> for AuthenticationMethod {
22    const JSON_SCHEMA: &'static str = "NetworkDeviceFunction.v1_9_0.json";
23}