[][src]Struct chirpstack_api::as_pb::external::api::user_service_client::UserServiceClient

pub struct UserServiceClient<T> { /* fields omitted */ }

UserService is the service managing the user access.

Implementations

impl UserServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> UserServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn list<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListUserRequest>
) -> Result<Response<ListUserResponse>, Status>
[src]

Get user list.

pub async fn get<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetUserRequest>
) -> Result<Response<GetUserResponse>, Status>
[src]

Get data for a particular user.

pub async fn create<'_>(
    &'_ mut self,
    request: impl IntoRequest<CreateUserRequest>
) -> Result<Response<CreateUserResponse>, Status>
[src]

Create a new user.

pub async fn update<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateUserRequest>
) -> Result<Response<()>, Status>
[src]

Update an existing user.

pub async fn delete<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteUserRequest>
) -> Result<Response<()>, Status>
[src]

Delete a user.

pub async fn update_password<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateUserPasswordRequest>
) -> Result<Response<()>, Status>
[src]

UpdatePassword updates a password.

Trait Implementations

impl<T: Clone> Clone for UserServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for UserServiceClient<T>

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>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]