pub fn encode_rpc_response<R, E>(res: Result<R, ServerFnError<E>>) -> Responsewhere R: Encode, E: Encode,