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;

/// The available actions for this resource.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Actions {
    #[serde(rename = "#OutletGroup.PowerControl")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outlet_group_power_control: Option<models::outlet_group::v1_1_1::PowerControl>,
    #[serde(rename = "#OutletGroup.ResetMetrics")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outlet_group_reset_metrics: Option<models::outlet_group::v1_1_1::ResetMetrics>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::outlet_group::v1_1_1::OemActions>,
}

impl crate::Metadata<'static> for Actions {
    const JSON_SCHEMA: &'static str = "OutletGroup.v1_1_1.json";
}