Skip to main content

incus_client/models/
image_alias.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/// ImageAlias : ImageAlias represents an alias from the alias list of an image
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ImageAlias {
17    /// Description of the alias
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20    /// Name of the alias
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23}
24
25impl ImageAlias {
26    /// ImageAlias represents an alias from the alias list of an image
27    pub fn new() -> ImageAlias {
28        ImageAlias {
29            description: None,
30            name: None,
31        }
32    }
33}
34