redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The HTTP and JSON payload details for this Task.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Payload {
    /// An array of HTTP headers that this task includes.
    #[serde(rename = "HttpHeaders")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http_headers: Option<Vec<String>>,
    /// The HTTP operation to perform to execute this task.
    #[serde(rename = "HttpOperation")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http_operation: Option<String>,
    /// The JSON payload to use in the execution of this task.
    #[serde(rename = "JsonBody")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<String>,
    /// The URI of the target for this task.
    #[serde(rename = "TargetUri")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub target_uri: Option<String>,
}

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