Skip to main content

incus_client/models/
instance_snapshots_get_recursion1_200_response.rs

1/*
2 * Incus external REST API
3 *
4 * This is the REST API used by all Incus clients. Internal endpoints aren't included in this documentation.  The Incus API is available over both a local unix+http and remote https API. Authentication for local users relies on group membership and access to the unix socket. For remote users, the default authentication method is TLS client certificates.
5 *
6 * The version of the OpenAPI document: 1.0
7 * Contact: lxc-devel@lists.linuxcontainers.org
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// InstanceSnapshotsGetRecursion1200Response : Sync response
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct InstanceSnapshotsGetRecursion1200Response {
17    /// List of instance snapshots
18    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
19    pub metadata: Option<Vec<models::InstanceSnapshot>>,
20    /// Status description
21    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
22    pub status: Option<String>,
23    /// Status code
24    #[serde(rename = "status_code", skip_serializing_if = "Option::is_none")]
25    pub status_code: Option<i32>,
26    /// Response type
27    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
28    pub r#type: Option<String>,
29}
30
31impl InstanceSnapshotsGetRecursion1200Response {
32    /// Sync response
33    pub fn new() -> InstanceSnapshotsGetRecursion1200Response {
34        InstanceSnapshotsGetRecursion1200Response {
35            metadata: None,
36            status: None,
37            status_code: None,
38            r#type: None,
39        }
40    }
41}
42