[][src]Struct chirpstack_api::as_pb::external::api::internal_service_client::InternalServiceClient

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

InternalService is the service providing API endpoints for internal usage.

Implementations

impl InternalServiceClient<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> InternalServiceClient<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 login<'_>(
    &'_ mut self,
    request: impl IntoRequest<LoginRequest>
) -> Result<Response<LoginResponse>, Status>
[src]

Log in a user

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

Get the current user's profile

Perform a global search.

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

CreateAPIKey creates the given API key.

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

DeleteAPIKey deletes the API key.

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

ListAPIKeys lists the available API keys.

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

Get the global settings.

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

OpenID Connect login.

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

GetDevicesSummary returns an aggregated summary of the devices.

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

GetGatewaysSummary returns an aggregated summary of the gateways.

Trait Implementations

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for InternalServiceClient<T>

impl<T> Send for InternalServiceClient<T> where
    T: Send

impl<T> Sync for InternalServiceClient<T> where
    T: Sync

impl<T> Unpin for InternalServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for InternalServiceClient<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]