Derive Macro JsonRpcResponse
Source #[derive(JsonRpcResponse)]
{
#[response]
}
Expand description
Derive macro for implementing JsonRpcResponse trait.
§Attributes
#[response(crate = crate)] - for use within the agent_client_protocol crate
§Example
ⓘ#[derive(Debug, Clone, Serialize, Deserialize, JsonRpcResponse)]
struct HelloResponse {
greeting: String,
}