pub trait UserService: Send + Sync + 'static {
    // Required methods
    fn create<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateUserRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<CreateUserResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: '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 Self: 'async_trait,
             'life0: 'async_trait;
    fn update<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateUserRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteUserRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: '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 Self: 'async_trait,
             'life0: '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 Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Methods§

source

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

Create a new user.

source

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

Get the user for the given ID.

source

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

Update the given user.

source

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

Delete the user with the given ID.

source

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

Get the list of users.

source

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

Update the password for the given user.

Implementors§