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

Support assigned labels field on computers. #28

Merged
merged 1 commit into from Nov 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/nodes/computer.rs
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,
}