redfish-codegen 0.3.1

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


/// The Global Component ID (GCID).
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct GCID {
    /// The component identifier portion of the GCID for the entity.
    #[serde(rename = "CID")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cid: Option<String>,
    /// The subnet identifier portion of the GCID for the entity.
    #[serde(rename = "SID")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sid: Option<String>,
}

impl crate::Metadata<'static> for GCID {
    const JSON_SCHEMA: &'static str = "Endpoint.v1_8_0.json";
}