Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
Support assigned labels field on computers.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtwco authored and mockersf committed Nov 10, 2018
1 parent 0abe86a commit d06fb50
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/nodes/computer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ macro_rules! computer_with_common_fields_and_impl {
pub executors: Vec<Executor>,
/// One off executors of the computer
pub one_off_executors: Vec<Executor>,
/// Labels assigned to the computer
pub assigned_labels: Vec<AssignedLabel>,

// TODO: actions, assignedLabels, loadStatistics

Expand Down Expand Up @@ -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,
}

0 comments on commit d06fb50

Please sign in to comment.