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 OAuth2M {
    /// This value shall indicate the service performs token validation from information found at the URIs specified by the ServiceAddresses property.  Services shall implement a caching method of this information so it's not necessary to retrieve metadata and key information for every request containing a token.
    Discovery,
    /// This value shall indicate the service performs token validation from properties configured by a client.  Clients should configure the Issuer and OAuthServiceSigningKeys properties for this mode.
    Offline,
}

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

impl crate::Metadata<'static> for OAuth2M {
    const JSON_SCHEMA: &'static str = "AccountService.v1_12_0.json";
}