Trait hvcg_identity_openapi_identity::Api [−][src]
pub trait Api<C: Send + Sync> { fn activate_user<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<ActivateUserResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; fn deactivate_user<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<DeactivateUserResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; fn update_password<'life0, 'life1, 'async_trait>(
&'life0 self,
inline_object: InlineObject,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<UpdatePasswordResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; fn query_user_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
id: Uuid,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<QueryUserByIdResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; fn query_users<'life0, 'life1, 'async_trait>(
&'life0 self,
username: Option<String>,
phone: Option<String>,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<QueryUsersResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; fn poll_ready(
&self,
_cx: &mut Context<'_>
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>> { ... } }
Expand description
API
Required methods
fn activate_user<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<ActivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn activate_user<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<ActivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Activate a user
fn deactivate_user<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<DeactivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn deactivate_user<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<DeactivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Deactive user
fn update_password<'life0, 'life1, 'async_trait>(
&'life0 self,
inline_object: InlineObject,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<UpdatePasswordResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn update_password<'life0, 'life1, 'async_trait>(
&'life0 self,
inline_object: InlineObject,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<UpdatePasswordResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
update password
Get user infomation by id
Get users infomation
Provided methods
Implementors
impl<S, C> Api<C> for Client<S, C> where
S: Service<(Request<Body>, C), Response = Response<Body>> + Clone + Sync + Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Box<dyn Error + Send + Sync + 'static>> + Display,
C: Has<XSpanIdString> + Has<Option<AuthData>> + Clone + Send + Sync + 'static,