Skip to main content

Module protocol_request

Module protocol_request 

Source
Expand description

Emit impl crate::ProtocolRequest for <RequestType> blocks.

This module emits blocks only for MessageType::Request schemas. It derives the matching Response type from the type name: it replaces the Request suffix with Response, then converts the result to a snake_case module name.

Functionsยง

emit_protocol_request
Emit the impl crate::ProtocolRequest for <Type> block for a request spec.