nomad_client_rs/models/
affinity.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct Affinity {
5 #[serde(rename = "LTarget", skip_serializing_if = "Option::is_none")]
6 pub l_target: Option<String>,
7 #[serde(rename = "Operand", skip_serializing_if = "Option::is_none")]
8 pub operand: Option<String>,
9 #[serde(rename = "RTarget", skip_serializing_if = "Option::is_none")]
10 pub r_target: Option<String>,
11 #[serde(rename = "Weight", skip_serializing_if = "Option::is_none")]
12 pub weight: Option<i32>,
13}