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 VersionScheme {
    /// This value shall indicate that the value of the Version property conforms to the format and rules of the Semantic Version 2.0 specification, and may include pre-release or build metadata.
    SemVer,
    /// This value shall indicate that the value of the Version property contains a sequence of integers separated by period (dot) characters, and shall follow the pattern `^\d+(\.\d+)*$`.  Leading zeros in the sequence shall be ignored.
    DotIntegerNotation,
    /// This value shall indicate that the value of the Version property follows a format and rules as defined by the vendor or manufacturer.
    OEM,
}

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

impl crate::Metadata<'static> for VersionScheme {
    const JSON_SCHEMA: &'static str = "SoftwareInventory.v1_9_0.json";
}