depl 2.4.3

Toolkit for a bunch of local and remote CI/CD actions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Placements module.

use crate::entities::info::ShortName;
use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;

/// Artifact placement.
#[derive(Deserialize, Serialize, PartialEq, Eq, PartialOrd, Ord, Clone)]
#[allow(missing_docs)]
pub struct Placement {
  pub from: String,
  pub to: String,
  /// Variables that used in `from` & `to` fields.
  #[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
  pub with: BTreeMap<String, ShortName>,
}