redfish-codegen 0.3.1

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


/// The authorization scope of the license.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum AuthorizationScope {
    /// This value shall indicate the license authorizes functionality for one or more specific device instances, listed as values of the AuthorizedDevices property.
    Device,
    /// This value shall indicate the license authorizes functionality for one or more device instances limited to a maximum number of devices specified by the value of the MaxAuthorizedDevices property.  In an aggregator, the aggregating service shall represent the applicable services in the TargetServices property in the Links property.
    Capacity,
    /// This value shall indicate the license authorizes product-level or service-level functionality for a service.  This may include hardware or software features not tied to a specific device or subsystem.  License resources using this value shall not include the AuthorizedDevices nor the MaxAuthorizedDevices properties.  In an aggregator, the aggregating service shall represent the applicable services in the TargetServices property in the Links property.
    Service,
}

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

impl crate::Metadata<'static> for AuthorizationScope {
    const JSON_SCHEMA: &'static str = "License.v1_1_1.json";
}