nomad_client_rs/models/
attribute.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct Attribute {
5    #[serde(rename = "Bool", skip_serializing_if = "Option::is_none")]
6    pub bool: Option<bool>,
7    #[serde(rename = "Float", skip_serializing_if = "Option::is_none")]
8    pub float: Option<f64>,
9    #[serde(rename = "Int", skip_serializing_if = "Option::is_none")]
10    pub int: Option<i64>,
11    #[serde(rename = "String", skip_serializing_if = "Option::is_none")]
12    pub string: Option<String>,
13    #[serde(rename = "Unit", skip_serializing_if = "Option::is_none")]
14    pub unit: Option<String>,
15}