pub trait AssetsApi: Send + Sync + 'static {
    type GetNFTListStream: Stream<Item = Result<NftResponse, Status>> + Send + 'static;

    // Required methods
    fn get_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<AssetRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AssetInfoResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_nft_list<'life0, 'async_trait>(
        &'life0 self,
        request: Request<NftRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetNFTListStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with AssetsApiServer.

Required Associated Types§

source

type GetNFTListStream: Stream<Item = Result<NftResponse, Status>> + Send + 'static

Server streaming response type for the GetNFTList method.

Required Methods§

source

fn get_info<'life0, 'async_trait>( &'life0 self, request: Request<AssetRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<AssetInfoResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_nft_list<'life0, 'async_trait>( &'life0 self, request: Request<NftRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetNFTListStream>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§