redfish_codegen/models/task/v1_7_1/
payload.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The HTTP and JSON payload details for this Task.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Payload {
9    /// An array of HTTP headers that this task includes.
10    #[serde(rename = "HttpHeaders")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub http_headers: Option<Vec<String>>,
13    /// The HTTP operation to perform to execute this task.
14    #[serde(rename = "HttpOperation")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub http_operation: Option<String>,
17    /// The JSON payload to use in the execution of this task.
18    #[serde(rename = "JsonBody")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub json_body: Option<String>,
21    /// The URI of the target for this task.
22    #[serde(rename = "TargetUri")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub target_uri: Option<String>,
25}
26
27impl crate::Metadata<'static> for Payload {
28    const JSON_SCHEMA: &'static str = "Task.v1_7_1.json";
29}