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

/// ChangesGet200Response : The list of changes
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangesGet200Response {
    /// The individual changes
    #[serde(rename = "Changes", skip_serializing_if = "Option::is_none")]
    pub changes: Option<Vec<serde_json::Value>>,
    /// Whether the last reported change is the last of the full history.
    #[serde(rename = "Done", skip_serializing_if = "Option::is_none")]
    pub done: Option<bool>,
    /// The index of the first reported change, its value-1 can be used for the `to` argument in subsequent calls to this route when browsing the changes in reverse order
    #[serde(rename = "First", skip_serializing_if = "Option::is_none")]
    pub first: Option<f64>,
    /// The index of the last reported change, can be used for the `since` argument in subsequent calls to this route
    #[serde(rename = "Last", skip_serializing_if = "Option::is_none")]
    pub last: Option<f64>,
}

impl ChangesGet200Response {
    /// The list of changes
    pub fn new() -> ChangesGet200Response {
        ChangesGet200Response {
            changes: None,
            done: None,
            first: None,
            last: None,
        }
    }
}