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

    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§

Server streaming response type for the GetNFTList method.

Required Methods§

Implementors§