pub trait Procedure {
type Request: RpcRequest;
type Response: RpcResponse;
// Required methods
fn method() -> HttpMethod;
fn entry_point() -> EntryPoint;
}
Expand description
Procedure definition.
Required Associated Types§
sourcetype Request: RpcRequest
type Request: RpcRequest
The request type of this procedure.
sourcetype Response: RpcResponse
type Response: RpcResponse
The response type of this procedure.
Required Methods§
sourcefn method() -> HttpMethod
fn method() -> HttpMethod
The HTTP method which this procedure handles.
sourcefn entry_point() -> EntryPoint
fn entry_point() -> EntryPoint
The entry point of this procedure.