redfish-codegen 0.3.1

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

use crate::models;

/// This type represents a single IPv6 static address to be assigned on a network interface.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct IPv6StaticAddress {
    /// A valid IPv6 address.
    #[serde(rename = "Address")]
    pub address: String,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    #[serde(rename = "PrefixLength")]
    pub prefix_length: models::ip_addresses::v1_0_10::PrefixLength,
}

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