Trait chirpstack_api::api::user_service_server::UserService
source · 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
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§
sourcefn 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 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.
sourcefn 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 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.
sourcefn 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 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.
sourcefn 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 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.