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 action adds an endpoint to a zone.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct AddEndpointRequestBody {
    #[serde(rename = "Endpoint")]
    pub endpoint: models::odata_v4::IdRef,
    /// The current ETag of the endpoint to add to the zone.
    #[serde(rename = "EndpointETag")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoint_e_tag: Option<String>,
    /// The current ETag of the zone.
    #[serde(rename = "ZoneETag")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub zone_e_tag: Option<String>,
}

impl crate::Metadata<'static> for AddEndpointRequestBody {
    const JSON_SCHEMA: &'static str = "Zone.v1_6_1.json";
}