orthanc_client_ogen 1.12.8

Orthanc API client library produced by OpenAPI Generator
Documentation
/*
 * Orthanc API
 *
 * This is the full documentation of the [REST API](https://orthanc.uclouvain.be/book/users/rest.html) of Orthanc.<p>This reference is automatically generated from the source code of Orthanc. A [shorter cheat sheet](https://orthanc.uclouvain.be/book/users/rest-cheatsheet.html) is part of the Orthanc Book.<p>An earlier, manually crafted version from August 2019, is [still available](2019-08-orthanc-openapi.html), but is not up-to-date anymore ([source](https://groups.google.com/g/orthanc-users/c/NUiJTEICSl8/m/xKeqMrbqAAAJ)).
 *
 * The version of the OpenAPI document: 1.12.8
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// InstancesPost200Response : Information about the uploaded instance, or list of information for each uploaded instance in the case of ZIP archive
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InstancesPost200Response {
    /// Orthanc identifier of the new instance
    #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Orthanc identifier of the parent patient
    #[serde(rename = "ParentPatient", skip_serializing_if = "Option::is_none")]
    pub parent_patient: Option<String>,
    /// Orthanc identifier of the parent series
    #[serde(rename = "ParentSeries", skip_serializing_if = "Option::is_none")]
    pub parent_series: Option<String>,
    /// Orthanc identifier of the parent study
    #[serde(rename = "ParentStudy", skip_serializing_if = "Option::is_none")]
    pub parent_study: Option<String>,
    /// Path to the new instance in the REST API
    #[serde(rename = "Path", skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    /// Can be `Success`, `AlreadyStored`, `Failure`, or `FilteredOut` (removed by some `NewInstanceFilter`)
    #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
}

impl InstancesPost200Response {
    /// Information about the uploaded instance, or list of information for each uploaded instance in the case of ZIP archive
    pub fn new() -> InstancesPost200Response {
        InstancesPost200Response {
            id: None,
            parent_patient: None,
            parent_series: None,
            parent_study: None,
            path: None,
            status: None,
        }
    }
}