Struct golem_cloud_client::api::LoginClientLive
source · pub struct LoginClientLive {
pub context: Context,
}Fields§
§context: ContextTrait Implementations§
source§impl LoginClient for LoginClientLive
impl LoginClient for LoginClientLive
fn login_oauth_2<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider: &'life1 str,
access_token: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<UnsafeToken, Error<LoginLoginOauth2Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn current_login_token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Token, Error<LoginCurrentLoginTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_login_oauth_2<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<OAuth2Data, Error<LoginStartLoginOauth2Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn complete_login_oauth_2<'life0, 'life1, 'async_trait>(
&'life0 self,
value: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<UnsafeToken, Error<LoginCompleteLoginOauth2Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn oauth_2_web_flow_start<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider: &'life1 str,
redirect: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<WebFlowAuthorizeUrlResponse, Error<LoginOauth2WebFlowStartError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn oauth_2_web_flow_callback_github<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
code: &'life1 str,
state: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WebFlowCallbackSuccessResponse, Error<LoginOauth2WebFlowCallbackGithubError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn oauth_2_web_flow_poll<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<UnsafeToken, Error<LoginOauth2WebFlowPollError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for LoginClientLive
impl !RefUnwindSafe for LoginClientLive
impl Send for LoginClientLive
impl Sync for LoginClientLive
impl Unpin for LoginClientLive
impl !UnwindSafe for LoginClientLive
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