pub struct Affinity {
pub l_target: String,
pub r_target: String,
pub operand: String,
pub weight: Option<i8>,
}
Expand description
Affinity is used to serialize task group affinities
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§l_target: String
§r_target: String
§operand: String
§weight: Option<i8>
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
impl StructuralPartialEq for Affinity
Auto Trait Implementations§
impl Freeze for Affinity
impl RefUnwindSafe for Affinity
impl Send for Affinity
impl Sync for Affinity
impl Unpin for Affinity
impl UnwindSafe for Affinity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more