Struct pact_plugin_driver::content::ContentGenerator [−][src]
pub struct ContentGenerator {
pub catalogue_entry: CatalogueEntry,
}Expand description
Generator for contents based on content type
Fields
catalogue_entry: CatalogueEntryCatalogue entry for this content matcher
Implementations
Catalogue entry key for this generator
Plugin name that provides this matcher
pub async fn generate_content(
&self,
content_type: &ContentType,
generators: &HashMap<String, Generator>,
body: &OptionalBody
) -> Result<OptionalBody>
pub async fn generate_content(
&self,
content_type: &ContentType,
generators: &HashMap<String, Generator>,
body: &OptionalBody
) -> Result<OptionalBody>
Generate the content for the given content type and body
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ContentGenerator
impl Send for ContentGenerator
impl Sync for ContentGenerator
impl Unpin for ContentGenerator
impl UnwindSafe for ContentGenerator
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
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
