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 = "#AggregationSource.GenerateSSHIdentityKeyPair")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub aggregation_source_generate_ssh_identity_key_pair: Option<models::aggregation_source::v1_3_1::GenerateSSHIdentityKeyPair>,
    #[serde(rename = "#AggregationSource.RemoveSSHIdentityKeyPair")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub aggregation_source_remove_ssh_identity_key_pair: Option<models::aggregation_source::v1_3_1::RemoveSSHIdentityKeyPair>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::aggregation_source::v1_3_1::OemActions>,
}

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