Struct nomad_client_rs::models::affinity::Affinity
source · pub struct Affinity {
pub l_target: Option<String>,
pub r_target: Option<String>,
pub operand: Option<String>,
pub weight: Option<i32>,
}Fields§
§l_target: Option<String>§r_target: Option<String>§operand: Option<String>§weight: Option<i32>Trait Implementations§
source§impl<'de> Deserialize<'de> for Affinity
impl<'de> Deserialize<'de> for Affinity
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more