#[endpoint]Expand description
Transforms a handler function into a NATS service endpoint.
§Request Headers
RoFr-Request-Id(optional) a unique identifier that the client generates to help trace requests.
ⓘ
#[endpoint(subject = "example")]
async fn example_endpoint(
ctx: RequestContext<Self::Context>,
/* ... */,
) -> Result<Response</* ... */, Error>;