Trait AssetsApi

Source
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§