Struct chirpstack_api::as_pb::external::api::user_service_client::UserServiceClient [−][src]
pub struct UserServiceClient<T> { /* fields omitted */ }
Expand description
UserService is the service managing the user access.
Implementations
impl<T> UserServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> UserServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> UserServiceClient<InterceptedService<T, F>> where
F: FnMut(Request<()>) -> Result<Request<()>, Status>,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn list(
&mut self,
request: impl IntoRequest<ListUserRequest>
) -> Result<Response<ListUserResponse>, Status>
pub async fn list(
&mut self,
request: impl IntoRequest<ListUserRequest>
) -> Result<Response<ListUserResponse>, Status>
Get user list.
pub async fn get(
&mut self,
request: impl IntoRequest<GetUserRequest>
) -> Result<Response<GetUserResponse>, Status>
pub async fn get(
&mut self,
request: impl IntoRequest<GetUserRequest>
) -> Result<Response<GetUserResponse>, Status>
Get data for a particular user.
pub async fn create(
&mut self,
request: impl IntoRequest<CreateUserRequest>
) -> Result<Response<CreateUserResponse>, Status>
pub async fn create(
&mut self,
request: impl IntoRequest<CreateUserRequest>
) -> Result<Response<CreateUserResponse>, Status>
Create a new user.
pub async fn update(
&mut self,
request: impl IntoRequest<UpdateUserRequest>
) -> Result<Response<()>, Status>
pub async fn update(
&mut self,
request: impl IntoRequest<UpdateUserRequest>
) -> Result<Response<()>, Status>
Update an existing user.
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteUserRequest>
) -> Result<Response<()>, Status>
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteUserRequest>
) -> Result<Response<()>, Status>
Delete a user.
pub async fn update_password(
&mut self,
request: impl IntoRequest<UpdateUserPasswordRequest>
) -> Result<Response<()>, Status>
pub async fn update_password(
&mut self,
request: impl IntoRequest<UpdateUserPasswordRequest>
) -> Result<Response<()>, Status>
UpdatePassword updates a password.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for UserServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for UserServiceClient<T> where
T: Send,
impl<T> Sync for UserServiceClient<T> where
T: Sync,
impl<T> Unpin for UserServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for UserServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request