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 AddressState {
    /// This address is currently within both its RFC4862-defined valid and preferred lifetimes.
    Preferred,
    /// This address is currently within its valid lifetime but is now outside its RFC4862-defined preferred lifetime.
    Deprecated,
    /// This address is currently undergoing Duplicate Address Detection (DAD) testing, as defined in RFC4862, section 5.4.
    Tentative,
    /// This address has failed Duplicate Address Detection (DAD) testing, as defined in RFC4862, section 5.4, and is not currently in use.
    Failed,
}

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

impl crate::Metadata<'static> for AddressState {
    const JSON_SCHEMA: &'static str = "IPAddresses.v1_0_10.json";
}