pub trait UserService: Send + Sync + 'static {
    fn create<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateUserRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<CreateUserResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetUserRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetUserResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn update<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateUserRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn delete<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteUserRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn list<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListUsersRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListUsersResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn update_password<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateUserPasswordRequest>
    ) -> 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 UserServiceServer.

Required Methods

Create a new user.

Get the user for the given ID.

Update the given user.

Delete the user with the given ID.

Get the list of users.

Update the password for the given user.

Implementors