@@ -108,17 +108,29 @@ pub struct RequestId(pub String);
108108// Small test twirp services (this would usually be generated with twirp-build)
109109#[ async_trait]
110110pub trait TestApiClient {
111- async fn ping ( & self , req : http:: Request < PingRequest > ) -> Result < http:: Response < PingResponse > , ClientError > ;
112- async fn boom ( & self , req : http:: Request < PingRequest > ) -> Result < http:: Response < PingResponse > , ClientError > ;
111+ async fn ping (
112+ & self ,
113+ req : http:: Request < PingRequest > ,
114+ ) -> Result < http:: Response < PingResponse > , ClientError > ;
115+ async fn boom (
116+ & self ,
117+ req : http:: Request < PingRequest > ,
118+ ) -> Result < http:: Response < PingResponse > , ClientError > ;
113119}
114120
115121#[ async_trait]
116122impl TestApiClient for Client {
117- async fn ping ( & self , req : http:: Request < PingRequest > ) -> Result < http:: Response < PingResponse > , ClientError > {
123+ async fn ping (
124+ & self ,
125+ req : http:: Request < PingRequest > ,
126+ ) -> Result < http:: Response < PingResponse > , ClientError > {
118127 self . request ( "test.TestAPI/Ping" , req) . await
119128 }
120129
121- async fn boom ( & self , _req : http:: Request < PingRequest > ) -> Result < http:: Response < PingResponse > , ClientError > {
130+ async fn boom (
131+ & self ,
132+ _req : http:: Request < PingRequest > ,
133+ ) -> Result < http:: Response < PingResponse > , ClientError > {
122134 todo ! ( )
123135 }
124136}
0 commit comments