Trait Query

Source
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 collateral_address<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryCollateralAddressRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryCollateralAddressResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn liquidation_event<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryLiquidationEventRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryLiquidationEventResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn liquidation_cet<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryLiquidationCetRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryLiquidationCetResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn loan<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryLoanRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryLoanResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn loans<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryLoansRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryLoansResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn loan_dlc_meta<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryLoanDlcMetaRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryLoanDlcMetaResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn repayment<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryRepaymentRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryRepaymentResponse>, 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.

Required Methods§

Source

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,

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§