pub trait ObjectQuery<Ctx, SC, TC>: Sizedwhere
    SC: StorageClient + Send + Sync,
    TC: TransactionCache + Sync,
    Ctx: AsRef<SC> + AsRef<TC> + Sync,
    TC::Error: Into<Self::Error>,
    <Self::Object as AsStorage<<SC as StorageClient>::Backend>>::StorageObject: Into<Self::Object>,{
    type Object: AsStorage<<SC as StorageClient>::Backend> + GetTransactionValues<SC, TC, Ctx> + Identifiable + Send + Serialize;
    type Error: Debug + Send;

    // Required method
    fn fetch<'life0, 'async_trait>(
        self,
        ctx: &'life0 Ctx
    ) -> Pin<Box<dyn Future<Output = Result<Vec<<Self::Object as AsStorage<SC::Backend>>::StorageObject>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn fetch_with_tx_data<'life0, 'async_trait>(
        self,
        ctx: &'life0 Ctx
    ) -> Pin<Box<dyn Future<Output = Result<Response, QueryError<Self::Error>>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
    fn headers(
        values: &HashMap<&<Self::Object as Identifiable>::Id, &Self::Object>
    ) -> HeaderMap { ... }
}
Available on crate feature policy-information-point only.

Required Associated Types§

Required Methods§

source

fn fetch<'life0, 'async_trait>( self, ctx: &'life0 Ctx ) -> Pin<Box<dyn Future<Output = Result<Vec<<Self::Object as AsStorage<SC::Backend>>::StorageObject>, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

source

fn fetch_with_tx_data<'life0, 'async_trait>( self, ctx: &'life0 Ctx ) -> Pin<Box<dyn Future<Output = Result<Response, QueryError<Self::Error>>> + Send + 'async_trait>>where Self: Send + 'async_trait, 'life0: 'async_trait,

source

fn headers( values: &HashMap<&<Self::Object as Identifiable>::Id, &Self::Object> ) -> HeaderMap

Implementors§