nautobot-openapi 0.4.0

low level nautobot bindings (generated by openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

/// JobRunResponse : Serializer representing responses from the JobModelViewSet.run() POST endpoint.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct JobRunResponse {
    #[serde(rename = "schedule", skip_serializing_if = "Option::is_none")]
    pub schedule: Option<Box<crate::models::ScheduledJob>>,
    #[serde(rename = "job_result", skip_serializing_if = "Option::is_none")]
    pub job_result: Option<Box<crate::models::JobResult>>,
}

impl JobRunResponse {
    /// Serializer representing responses from the JobModelViewSet.run() POST endpoint.
    pub fn new() -> JobRunResponse {
        JobRunResponse {
            schedule: None,
            job_result: None,
        }
    }
}