exoscale_rs/models/operation_reference.rs
1/*
2 * Exoscale Public API
3 *
4 * Infrastructure automation API, allowing programmatic access to all Exoscale products and services. The [OpenAPI Specification](http://spec.openapis.org/oas/v3.0.3.html) source of this documentation can be obtained here: * [JSON format](https://openapi-v2.exoscale.com/source.json) * [YAML format](https://openapi-v2.exoscale.com/source.yaml)
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: api@exoscale.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct OperationReference {
16 /// Reference ID
17 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18 pub id: Option<uuid::Uuid>,
19 /// Link to the referenced resource
20 #[serde(rename = "link", skip_serializing_if = "Option::is_none")]
21 pub link: Option<String>,
22 /// Command name
23 #[serde(rename = "command", skip_serializing_if = "Option::is_none")]
24 pub command: Option<String>,
25}
26
27impl OperationReference {
28 /// Related resource reference
29 pub fn new() -> OperationReference {
30 OperationReference {
31 id: None,
32 link: None,
33 command: None,
34 }
35 }
36}
37