Skip to main content

emit

Function emit 

Source
pub fn emit(
    spec: &MessageSpec,
    flavor: Flavor,
    schemas_version: &str,
    namespace: Option<&str>,
) -> Result<String, EmitError>
Expand description

Emit a wrapper body for one message + flavor.

ยงErrors

Returns an error when the generated code is not valid Rust, which is an emitter bug.