redfish-codegen 0.3.1

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


/// The supported capabilities of this job service implementation.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct JobServiceCapabilities {
    /// The maximum number of jobs supported.
    #[serde(rename = "MaxJobs")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_jobs: Option<i64>,
    /// The maximum number of job steps supported.
    #[serde(rename = "MaxSteps")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_steps: Option<i64>,
    /// An indication of whether scheduling of jobs is supported.
    #[serde(rename = "Scheduling")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub scheduling: Option<bool>,
}

impl crate::Metadata<'static> for JobServiceCapabilities {
    const JSON_SCHEMA: &'static str = "JobService.v1_0_4.json";
}