brinkhaustools::licence

Function evaluate

Source
pub fn evaluate(
    licences: &[SignedLicence],
    trial: Option<&TrialRecord>,
    policy: &TrialPolicy,
    ctx: &EvaluationContext<'_>,
) -> Grant
Expand description

Evaluate all licences and the trial. Licences OR together: features are the union, quotas the sum, over the valid licences only, each licence id counted once (a repeat is RejectReason::Duplicate).