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 = "#StorageController.AttachNamespaces")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_controller_attach_namespaces: Option<models::storage_controller::v1_7_0::AttachNamespaces>,
    #[serde(rename = "#StorageController.DetachNamespaces")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_controller_detach_namespaces: Option<models::storage_controller::v1_7_0::DetachNamespaces>,
    #[serde(rename = "#StorageController.SecurityReceive")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_controller_security_receive: Option<models::storage_controller::v1_7_0::SecurityReceive>,
    #[serde(rename = "#StorageController.SecuritySend")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_controller_security_send: Option<models::storage_controller::v1_7_0::SecuritySend>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::storage_controller::v1_7_0::OemActions>,
}

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