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 Self: 'async_trait,
'life0: 'async_trait;
fn auction<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAuctionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAuctionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn auctions<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryAuctionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryAuctionsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn bid<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryBidRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryBidResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn bids<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryBidsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryBidsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Available on crate feature
grpc only.Expand description
Generated trait containing gRPC methods that should be implemented for use with QueryServer.