Struct pact_models::generators::Generators [−][src]
pub struct Generators {
pub categories: HashMap<GeneratorCategory, HashMap<DocPath, Generator>>,
}
Expand description
Data structure for representing a collection of generators
Fields
categories: HashMap<GeneratorCategory, HashMap<DocPath, Generator>>
Map of generator categories to maps of generators
Implementations
If the generators are empty (that is there are no rules assigned to any categories)
If the generators are not empty (that is there is at least one rule assigned to a category)
Loads the generators for a JSON map
Adds the generator to the category (body, headers, etc.)
pub fn add_generator_with_subcategory(
&mut self,
category: &GeneratorCategory,
subcategory: DocPath,
generator: Generator
)
pub fn add_generator_with_subcategory(
&mut self,
category: &GeneratorCategory,
subcategory: DocPath,
generator: Generator
)
Adds a generator to the category with a sub-category key (i.e. headers or query parameters)
Add all the generators
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Generators
impl Send for Generators
impl Sync for Generators
impl Unpin for Generators
impl UnwindSafe for Generators
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more