Trait hvcg_identity_openapi_identity::ApiNoContext[][src]

pub trait ApiNoContext<C: Send + Sync> {
    fn poll_ready(
        &self,
        _cx: &mut Context<'_>
    ) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>;
fn context(&self) -> &C;
fn activate_user<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<ActivateUserResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn deactivate_user<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<DeactivateUserResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn update_password<'life0, 'async_trait>(
        &'life0 self,
        inline_object: InlineObject
    ) -> Pin<Box<dyn Future<Output = Result<UpdatePasswordResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn query_user_by_id<'life0, 'async_trait>(
        &'life0 self,
        id: Uuid
    ) -> Pin<Box<dyn Future<Output = Result<QueryUserByIdResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn query_users<'life0, 'async_trait>(
        &'life0 self,
        username: Option<String>,
        phone: Option<String>
    ) -> Pin<Box<dyn Future<Output = Result<QueryUsersResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

API where Context isn’t passed on every API call

Required methods

Activate a user

Deactive user

update password

Get user infomation by id

Get users infomation

Implementations on Foreign Types

Activate a user

Deactive user

update password

Get user infomation by id

Get users infomation

Implementors