incus_client/models/storage_volume_bitmaps_post.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/// StorageVolumeBitmapsPost : StorageVolumeBitmapsPost represents the fields available for a new volume bitmap
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StorageVolumeBitmapsPost {
17 /// The bitmap is created in the disabled state
18 #[serde(rename = "disabled", skip_serializing_if = "Option::is_none")]
19 pub disabled: Option<bool>,
20 /// Granularity of the dirty bitmap in bytes
21 #[serde(rename = "granularity", skip_serializing_if = "Option::is_none")]
22 pub granularity: Option<i64>,
23 /// Bitmap name
24 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
25 pub name: Option<String>,
26 /// true if the bitmap was stored on disk, is scheduled to be stored on disk, or both
27 #[serde(rename = "persistent", skip_serializing_if = "Option::is_none")]
28 pub persistent: Option<bool>,
29}
30
31impl StorageVolumeBitmapsPost {
32 /// StorageVolumeBitmapsPost represents the fields available for a new volume bitmap
33 pub fn new() -> StorageVolumeBitmapsPost {
34 StorageVolumeBitmapsPost {
35 disabled: None,
36 granularity: None,
37 name: None,
38 persistent: None,
39 }
40 }
41}
42