Trait minerva_rpc::user::user_server::User
source · [−]pub trait User: Send + Sync + 'static {
fn index<'life0, 'async_trait>(
&'life0 self,
request: Request<PageIndex>
) -> Pin<Box<dyn Future<Output = Result<Response<UserList>, 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<User>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn store<'life0, 'async_trait>(
&'life0 self,
request: Request<User>
) -> Pin<Box<dyn Future<Output = Result<Response<User>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn update<'life0, 'async_trait>(
&'life0 self,
request: Request<User>
) -> Pin<Box<dyn Future<Output = Result<Response<User>, 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 UserServer.
Required Methods
List all users, given a page index.
Show a specific user, given its index.
Include a new user and return it.
Update a user and return it.