redfish_codegen/models/software_inventory/v1_9_0/version_scheme.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum VersionScheme {
6 /// 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.
7 SemVer,
8 /// 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.
9 DotIntegerNotation,
10 /// This value shall indicate that the value of the Version property follows a format and rules as defined by the vendor or manufacturer.
11 OEM,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for VersionScheme {
16 fn default() -> VersionScheme {
17 VersionScheme::SemVer
18 }
19}
20
21impl crate::Metadata<'static> for VersionScheme {
22 const JSON_SCHEMA: &'static str = "SoftwareInventory.v1_9_0.json";
23}