incus_client/models/server_storage_driver_info.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/// ServerStorageDriverInfo : ServerStorageDriverInfo represents the read-only info about a storage driver
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ServerStorageDriverInfo {
17 /// Name of the driver
18 #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
19 pub name: Option<String>,
20 /// Whether the driver has remote volumes
21 #[serde(rename = "Remote", skip_serializing_if = "Option::is_none")]
22 pub remote: Option<bool>,
23 /// Version of the driver
24 #[serde(rename = "Version", skip_serializing_if = "Option::is_none")]
25 pub version: Option<String>,
26}
27
28impl ServerStorageDriverInfo {
29 /// ServerStorageDriverInfo represents the read-only info about a storage driver
30 pub fn new() -> ServerStorageDriverInfo {
31 ServerStorageDriverInfo {
32 name: None,
33 remote: None,
34 version: None,
35 }
36 }
37}
38