pub trait Products: Send + Sync + 'static {
    fn index<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PageIndex>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ProductList>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn show<'life0, 'async_trait>(
        &'life0 self,
        request: Request<EntityIndex>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Product>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn store<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Product>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Product>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn update<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Product>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Product>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn delete<'life0, 'async_trait>(
        &'life0 self,
        request: Request<EntityIndex>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

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

Required Methods

List all products, given a page index.

Show a specific product, given its index.

Include a new product and return it.

Update a product and return it.

Delete a product.

Implementors