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 job.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Payload {
    /// An array of HTTP headers in this job.
    #[serde(rename = "HttpHeaders")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub http_headers: Option<Vec<String>>,
    /// The HTTP operation that executes this job.
    #[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 job.
    #[serde(rename = "JsonBody")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub json_body: Option<String>,
    /// The link to the target for this job.
    #[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 = "Job.v1_2_1.json";
}