pub fn str_req_resp_enum(
        &self,
        enum_name: &str,
        versions: &motif::EnumVfields,
    ) -> Result<String, Error> {
        let mut ctx = Context::new();
        ctx.insert("name", enum_name);
        ctx.insert("versions", versions);
        Ok(self.tera.render(REQ_RESP_ENUM_TERA, &ctx)?)
    }
/// Generates a versioned enum for a given request/response of the Kafka protocol
Generates a versioned enum for a given request/response of the Kafka protocol
Generates a versioned enum for a given request / response of the Kafka protocol
pub fn str_req_resp_enum(
        &self,
        enum_name: &str,
        versions: &motif::EnumVfields,
    ) -> Result<String, Error> {
        let mut ctx = Context::new();
        ctx.insert("name", enum_name);
        ctx.insert("versions", versions);
        Ok(self.tera.render(REQ_RESP_ENUM_TERA, &ctx)?)
    }
pub fn str_req_resp_enum ( & self , enum_name : & str , versions : & motif :: EnumVfields , ) -> Result < String , Error > { let mut ctx = Context :: new ( ) ; ctx . insert ( " " , enum_name ) ; ctx . insert ( " " , versions ) ; Ok ( self . tera . render ( REQ_RESP_ENUM_TERA , & ctx ) ? ) }
Generates a versioned enum for a given request/response of the Kafka protocol
Generates a versioned enum for a given request / response of the Kafka protocol
&self
enum_name
&str
versions
&motif::EnumVfields