pub trait Query:
Send
+ Sync
+ 'static {
// Required methods
fn params<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryParamsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn inflation<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryInflationRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryInflationResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn annual_provisions<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAnnualProvisionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAnnualProvisionsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with QueryServer.