nomad_client_rs/models/
spread.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct Spread {
5    #[serde(rename = "Attribute", skip_serializing_if = "Option::is_none")]
6    pub attribute: Option<String>,
7    #[serde(rename = "SpreadTarget", skip_serializing_if = "Option::is_none")]
8    pub spread_target: Option<Vec<crate::models::SpreadTarget>>,
9    #[serde(rename = "Weight", skip_serializing_if = "Option::is_none")]
10    pub weight: Option<i32>,
11}