redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum AuthenticationMode {
    /// Requests without any sort of authentication are allowed.
    AuthNone,
    /// Requests using HTTP Basic Authentication are allowed.
    BasicAuth,
    /// Requests using Redfish Session Authentication are allowed.
    RedfishSessionAuth,
    /// Requests using OEM authentication mechanisms are allowed.
    OemAuth,
}

#[allow(clippy::derivable_impls)]
impl Default for AuthenticationMode {
     fn default() -> AuthenticationMode {
        AuthenticationMode::AuthNone
     }
}

impl crate::Metadata<'static> for AuthenticationMode {
    const JSON_SCHEMA: &'static str = "HostInterface.v1_3_0.json";
}