redfish_codegen/models/host_interface/v1_3_0/
authentication_mode.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum AuthenticationMode {
6    /// Requests without any sort of authentication are allowed.
7    AuthNone,
8    /// Requests using HTTP Basic Authentication are allowed.
9    BasicAuth,
10    /// Requests using Redfish Session Authentication are allowed.
11    RedfishSessionAuth,
12    /// Requests using OEM authentication mechanisms are allowed.
13    OemAuth,
14}
15
16#[allow(clippy::derivable_impls)]
17impl Default for AuthenticationMode {
18     fn default() -> AuthenticationMode {
19        AuthenticationMode::AuthNone
20     }
21}
22
23impl crate::Metadata<'static> for AuthenticationMode {
24    const JSON_SCHEMA: &'static str = "HostInterface.v1_3_0.json";
25}