pub struct AuthApiClient { /* private fields */ }Available on crate feature
auth_api only.Implementations§
Source§impl AuthApiClient
impl AuthApiClient
pub fn new(configuration: Arc<Configuration>) -> Self
Trait Implementations§
Source§impl AuthApi for AuthApiClient
impl AuthApi for AuthApiClient
Source§fn delete_session<'id, 'refresh_token, 'life0, 'async_trait>(
&'life0 self,
id: Option<&'id str>,
refresh_token: Option<&'refresh_token str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteSessionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'id: 'async_trait,
'refresh_token: 'async_trait,
'life0: 'async_trait,
fn delete_session<'id, 'refresh_token, 'life0, 'async_trait>(
&'life0 self,
id: Option<&'id str>,
refresh_token: Option<&'refresh_token str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteSessionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'id: 'async_trait,
'refresh_token: 'async_trait,
'life0: 'async_trait,
POST /auth/logout
Source§fn get_api_tokens<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserApiTokenDto>, Error<GetApiTokensError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_api_tokens<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserApiTokenDto>, Error<GetApiTokensError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /auth/apitokens
Source§fn get_o_auth_token<'use_cookie, 'client_id, 'code, 'code_verifier, 'grant_type, 'redirect_uri, 'refresh_token, 'life0, 'async_trait>(
&'life0 self,
use_cookie: Option<bool>,
client_id: Option<&'client_id str>,
code: Option<&'code str>,
code_verifier: Option<&'code_verifier str>,
grant_type: Option<&'grant_type str>,
redirect_uri: Option<&'redirect_uri str>,
refresh_token: Option<&'refresh_token str>,
) -> Pin<Box<dyn Future<Output = Result<TokenResponseDto, Error<GetOAuthTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'use_cookie: 'async_trait,
'client_id: 'async_trait,
'code: 'async_trait,
'code_verifier: 'async_trait,
'grant_type: 'async_trait,
'redirect_uri: 'async_trait,
'refresh_token: 'async_trait,
'life0: 'async_trait,
fn get_o_auth_token<'use_cookie, 'client_id, 'code, 'code_verifier, 'grant_type, 'redirect_uri, 'refresh_token, 'life0, 'async_trait>(
&'life0 self,
use_cookie: Option<bool>,
client_id: Option<&'client_id str>,
code: Option<&'code str>,
code_verifier: Option<&'code_verifier str>,
grant_type: Option<&'grant_type str>,
redirect_uri: Option<&'redirect_uri str>,
refresh_token: Option<&'refresh_token str>,
) -> Pin<Box<dyn Future<Output = Result<TokenResponseDto, Error<GetOAuthTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'use_cookie: 'async_trait,
'client_id: 'async_trait,
'code: 'async_trait,
'code_verifier: 'async_trait,
'grant_type: 'async_trait,
'redirect_uri: 'async_trait,
'refresh_token: 'async_trait,
'life0: 'async_trait,
POST /auth/token
Source§fn get_sessions_for_current_user<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserSessionDto>, Error<GetSessionsForCurrentUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_sessions_for_current_user<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserSessionDto>, Error<GetSessionsForCurrentUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /auth/sessions
Auto Trait Implementations§
impl Freeze for AuthApiClient
impl !RefUnwindSafe for AuthApiClient
impl Send for AuthApiClient
impl Sync for AuthApiClient
impl Unpin for AuthApiClient
impl !UnwindSafe for AuthApiClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more