redfish_codegen/models/job/v1_2_1/
payload.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The HTTP and JSON payload details for this job.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Payload {
9    /// An array of HTTP headers in this job.
10    #[serde(rename = "HttpHeaders")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub http_headers: Option<Vec<String>>,
13    /// The HTTP operation that executes this job.
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 job.
18    #[serde(rename = "JsonBody")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub json_body: Option<String>,
21    /// The link to the target for this job.
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 = "Job.v1_2_1.json";
29}