Trait hvcg_iam_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,
inline_object2: InlineObject2
) -> Pin<Box<dyn Future<Output = Result<ActivateUserResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn create_user<'life0, 'async_trait>(
&'life0 self,
user: User
) -> Pin<Box<dyn Future<Output = Result<CreateUserResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn deactivate_user<'life0, 'async_trait>(
&'life0 self,
inline_object1: InlineObject1
) -> Pin<Box<dyn Future<Output = Result<DeactivateUserResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn password_update<'life0, 'async_trait>(
&'life0 self,
inline_object: InlineObject
) -> Pin<Box<dyn Future<Output = Result<PasswordUpdateResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn update_user<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
user: User
) -> Pin<Box<dyn Future<Output = Result<UpdateUserResponse, 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>,
email: Option<String>,
enabled: Option<bool>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<QueryUsersResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn delete_user<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteUserResponse, 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
fn poll_ready(
&self,
_cx: &mut Context<'_>
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
fn activate_user<'life0, 'async_trait>(
&'life0 self,
inline_object2: InlineObject2
) -> Pin<Box<dyn Future<Output = Result<ActivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn activate_user<'life0, 'async_trait>(
&'life0 self,
inline_object2: InlineObject2
) -> Pin<Box<dyn Future<Output = Result<ActivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Activate a user
fn create_user<'life0, 'async_trait>(
&'life0 self,
user: User
) -> Pin<Box<dyn Future<Output = Result<CreateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_user<'life0, 'async_trait>(
&'life0 self,
user: User
) -> Pin<Box<dyn Future<Output = Result<CreateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Create user
fn deactivate_user<'life0, 'async_trait>(
&'life0 self,
inline_object1: InlineObject1
) -> Pin<Box<dyn Future<Output = Result<DeactivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn deactivate_user<'life0, 'async_trait>(
&'life0 self,
inline_object1: InlineObject1
) -> Pin<Box<dyn Future<Output = Result<DeactivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deactive user
fn password_update<'life0, 'async_trait>(
&'life0 self,
inline_object: InlineObject
) -> Pin<Box<dyn Future<Output = Result<PasswordUpdateResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn password_update<'life0, 'async_trait>(
&'life0 self,
inline_object: InlineObject
) -> Pin<Box<dyn Future<Output = Result<PasswordUpdateResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
password update
Update an existing user
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_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,
Get user infomation by id
fn query_users<'life0, 'async_trait>(
&'life0 self,
username: Option<String>,
phone: Option<String>,
email: Option<String>,
enabled: Option<bool>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<QueryUsersResponse, 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>,
email: Option<String>,
enabled: Option<bool>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<QueryUsersResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Get users infomation
fn delete_user<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_user<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a user
Implementations on Foreign Types
fn activate_user<'life0, 'async_trait>(
&'life0 self,
inline_object2: InlineObject2
) -> Pin<Box<dyn Future<Output = Result<ActivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn activate_user<'life0, 'async_trait>(
&'life0 self,
inline_object2: InlineObject2
) -> Pin<Box<dyn Future<Output = Result<ActivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Activate a user
fn create_user<'life0, 'async_trait>(
&'life0 self,
user: User
) -> Pin<Box<dyn Future<Output = Result<CreateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_user<'life0, 'async_trait>(
&'life0 self,
user: User
) -> Pin<Box<dyn Future<Output = Result<CreateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Create user
fn deactivate_user<'life0, 'async_trait>(
&'life0 self,
inline_object1: InlineObject1
) -> Pin<Box<dyn Future<Output = Result<DeactivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn deactivate_user<'life0, 'async_trait>(
&'life0 self,
inline_object1: InlineObject1
) -> Pin<Box<dyn Future<Output = Result<DeactivateUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deactive user
fn password_update<'life0, 'async_trait>(
&'life0 self,
inline_object: InlineObject
) -> Pin<Box<dyn Future<Output = Result<PasswordUpdateResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn password_update<'life0, 'async_trait>(
&'life0 self,
inline_object: InlineObject
) -> Pin<Box<dyn Future<Output = Result<PasswordUpdateResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
password update
Update an existing user
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_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,
Get user infomation by id
fn query_users<'life0, 'async_trait>(
&'life0 self,
username: Option<String>,
phone: Option<String>,
email: Option<String>,
enabled: Option<bool>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<QueryUsersResponse, 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>,
email: Option<String>,
enabled: Option<bool>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<QueryUsersResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Get users infomation
fn delete_user<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_user<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteUserResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a user