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 UserAuthenticationMethod {
    /// This value shall indicate SSH user authentication with a public key specified by the PublicIdentityKey property in SSHSettings.
    PublicKey,
    /// This value shall indicate SSH user authentication with a password specified by the Password property.
    Password,
}

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

impl crate::Metadata<'static> for UserAuthenticationMethod {
    const JSON_SCHEMA: &'static str = "AggregationSource.v1_3_1.json";
}