pub trait KeycloakApi {
// Required methods
fn search_users_by_username<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
search_params: &'life1 UserSearchParameters,
pagination: &'life2 PageParameters,
client: &'life3 Client,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserDto>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn get_users_by_ids<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
user_ids: Vec<Uuid>,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserDto>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_user_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
user_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<UserDto>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Required Methods§
sourcefn search_users_by_username<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
search_params: &'life1 UserSearchParameters,
pagination: &'life2 PageParameters,
client: &'life3 Client,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserDto>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn search_users_by_username<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
search_params: &'life1 UserSearchParameters,
pagination: &'life2 PageParameters,
client: &'life3 Client,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserDto>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Search for users by their username.
§Errors
- If the url cannot be parsed.
- If the authorization header cannot be created.
- If the request fails or the response cannot be deserialized.
sourcefn get_users_by_ids<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
user_ids: Vec<Uuid>,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserDto>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_users_by_ids<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
user_ids: Vec<Uuid>,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserDto>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Gets all users given their ids from the Keycloak API.
§Errors
- If the url cannot be parsed.
- If the authorization header cannot be created.
- If the request fails or the response cannot be deserialized.
sourcefn get_user_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
user_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<UserDto>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_user_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
user_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<UserDto>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Gets a user by its id from the Keycloak API.
§Errors
- If the url cannot be parsed.
- If the authorization header cannot be created.
- If the request fails or the response cannot be deserialized.