pub struct Licences {
pub enabled: bool,
pub enforce: bool,
pub groups: BTreeMap<String, String>,
pub below_version: BTreeMap<String, String>,
pub required: Option<LicenceRequired>,
pub exempt: Vec<String>,
pub env: BTreeMap<String, BTreeMap<String, String>>,
}Expand description
Licence enforcement mechanism; the data stays in the site file.
Fields§
§enabled: boolSet false to skip the gate.
enforce: boolRun the gate: every required name needs a group, a threshold or an exemption, and an empty configuration is refused.
groups: BTreeMap<String, String>Package name to unix group, exported as EB_PIPELINE_LICENCE_GROUP for lines of that package.
below_version: BTreeMap<String, String>Package name to version; the group applies below that version only.
required: Option<LicenceRequired>Independent second list of licensed packages.
exempt: Vec<String>Required names that deliberately have no group.
env: BTreeMap<String, BTreeMap<String, String>>Environment per package name, [licences.env.<Name>].
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Licences
impl<'de> Deserialize<'de> for Licences
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 Licences
Auto Trait Implementations§
impl Freeze for Licences
impl RefUnwindSafe for Licences
impl Send for Licences
impl Sync for Licences
impl Unpin for Licences
impl UnwindSafe for Licences
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