Trait chirpstack_api::as_pb::external::api::user_service_server::UserService [−][src]
pub trait UserService: Send + Sync + 'static { #[must_use] fn list<'life0, 'async_trait>(
&'life0 self,
request: Request<ListUserRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ListUserResponse>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] 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; #[must_use] 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; #[must_use] 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; #[must_use] 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; #[must_use] 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
#[must_use]fn list<'life0, 'async_trait>(
&'life0 self,
request: Request<ListUserRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ListUserResponse>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn list<'life0, 'async_trait>(
&'life0 self,
request: Request<ListUserRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ListUserResponse>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Get user list.
#[must_use]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,
[src]
#[must_use]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,
[src]Get data for a particular user.
#[must_use]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,
[src]
#[must_use]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,
[src]Create a new user.
#[must_use]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,
[src]
#[must_use]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,
[src]Update an existing user.