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};

/// ModalitiesIdPutRequest : 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ModalitiesIdPutRequest {
    /// AET of the remote DICOM modality
    #[serde(rename = "AET", skip_serializing_if = "Option::is_none")]
    pub aet: Option<String>,
    /// Whether to accept C-ECHO SCU commands issued by the remote modality
    #[serde(rename = "AllowEcho", skip_serializing_if = "Option::is_none")]
    pub allow_echo: Option<bool>,
    /// Whether to accept C-FIND SCU commands issued by the remote modality
    #[serde(rename = "AllowFind", skip_serializing_if = "Option::is_none")]
    pub allow_find: Option<bool>,
    /// Whether to accept C-FIND SCU commands for worklists issued by the remote modality
    #[serde(rename = "AllowFindWorklist", skip_serializing_if = "Option::is_none")]
    pub allow_find_worklist: Option<bool>,
    /// Whether to accept C-GET SCU commands issued by the remote modality
    #[serde(rename = "AllowGet", skip_serializing_if = "Option::is_none")]
    pub allow_get: Option<bool>,
    /// Whether to accept C-MOVE SCU commands issued by the remote modality
    #[serde(rename = "AllowMove", skip_serializing_if = "Option::is_none")]
    pub allow_move: Option<bool>,
    /// Whether to accept storage commitment requests issued by the remote modality
    #[serde(rename = "AllowStorageCommitment", skip_serializing_if = "Option::is_none")]
    pub allow_storage_commitment: Option<bool>,
    /// Whether to accept C-STORE SCU commands issued by the remote modality
    #[serde(rename = "AllowStore", skip_serializing_if = "Option::is_none")]
    pub allow_store: Option<bool>,
    /// Whether to allow transcoding for operations initiated by this modality. This option applies to Orthanc C-GET SCP and to Orthanc C-STORE SCU. It only has an effect if the global option `EnableTranscoding` is set to `true`.
    #[serde(rename = "AllowTranscoding", skip_serializing_if = "Option::is_none")]
    pub allow_transcoding: Option<bool>,
    /// Host address of the remote DICOM modality (typically, an IP address)
    #[serde(rename = "Host", skip_serializing_if = "Option::is_none")]
    pub host: Option<String>,
    /// Whether to override the default DicomAet in the SCU connection initiated by Orthanc to this modality
    #[serde(rename = "LocalAet", skip_serializing_if = "Option::is_none")]
    pub local_aet: Option<String>,
    /// Manufacturer of the remote DICOM modality (check configuration option `DicomModalities` for possible values
    #[serde(rename = "Manufacturer", skip_serializing_if = "Option::is_none")]
    pub manufacturer: Option<String>,
    /// TCP port of the remote DICOM modality
    #[serde(rename = "Port", skip_serializing_if = "Option::is_none")]
    pub port: Option<f64>,
    /// Whether to override the default DicomScuTimeout in the SCU connection initiated by Orthanc to this modality
    #[serde(rename = "Timeout", skip_serializing_if = "Option::is_none")]
    pub timeout: Option<f64>,
    /// Whether to use DICOM TLS in the SCU connection initiated by Orthanc (new in Orthanc 1.9.0)
    #[serde(rename = "UseDicomTls", skip_serializing_if = "Option::is_none")]
    pub use_dicom_tls: Option<bool>,
}

impl ModalitiesIdPutRequest {
    /// 
    pub fn new() -> ModalitiesIdPutRequest {
        ModalitiesIdPutRequest {
            aet: None,
            allow_echo: None,
            allow_find: None,
            allow_find_worklist: None,
            allow_get: None,
            allow_move: None,
            allow_storage_commitment: None,
            allow_store: None,
            allow_transcoding: None,
            host: None,
            local_aet: None,
            manufacturer: None,
            port: None,
            timeout: None,
            use_dicom_tls: None,
        }
    }
}