pub fn validate_dynamic_offers<'a>(
dynamic_children: Vec<(&'a str, &'a str)>,
offers: &'a Vec<Offer>,
decl: &'a Component,
) -> Result<(), ErrorList>
Expand description
Validates a collection of dynamic offers. Dynamic offers differ from static offers, in that
- a dynamic offer’s
target
field must be omitted; - a dynamic offer’s
source
may be a dynamic child; - since this crate isn’t really designed to handle dynamic children, we disable the checks that ensure that the source/target exist, and that the offers don’t introduce any cycles.