From 59b9e22251a30b2b56dbda1fe098662877b1f544 Mon Sep 17 00:00:00 2001 From: David Wood Date: Thu, 8 Nov 2018 15:19:35 +0000 Subject: [PATCH] Support assigned labels field on computers. --- src/nodes/computer.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/nodes/computer.rs b/src/nodes/computer.rs index 64ba2f56..15016213 100644 --- a/src/nodes/computer.rs +++ b/src/nodes/computer.rs @@ -76,6 +76,8 @@ macro_rules! computer_with_common_fields_and_impl { pub executors: Vec, /// One off executors of the computer pub one_off_executors: Vec, + /// Labels assigned to the computer + pub assigned_labels: Vec, // TODO: actions, assignedLabels, loadStatistics @@ -152,3 +154,10 @@ pub enum ExecutorProgress { /// Nothing None(i32), } + +/// A label assigned to a computer. +#[derive(Serialize, Deserialize, Clone, Debug)] +pub struct AssignedLabel { + /// Name of the label. + pub name: String, +}