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 = "#UpdateService.SimpleUpdate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub update_service_simple_update: Option<models::update_service::v1_11_3::SimpleUpdate>,
    #[serde(rename = "#UpdateService.StartUpdate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub update_service_start_update: Option<models::update_service::v1_11_3::StartUpdate>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::update_service::v1_11_3::OemActions>,
}

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