incus_client/models/server_put.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/// ServerPut : ServerPut represents the modifiable fields of a server configuration
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ServerPut {
17 /// Server configuration map (refer to doc/server.md)
18 #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
19 pub config: Option<serde_json::Value>,
20}
21
22impl ServerPut {
23 /// ServerPut represents the modifiable fields of a server configuration
24 pub fn new() -> ServerPut {
25 ServerPut {
26 config: None,
27 }
28 }
29}
30