Accounts

Trait Accounts 

Source
pub trait Accounts {
    // Provided methods
    fn get_accounts(&self) -> MoosyncResult<Vec<ExtensionAccountDetail>> { ... }
    fn perform_account_login(
        &self,
        req: PerformAccountLoginRequest,
    ) -> MoosyncResult<String> { ... }
    fn oauth_callback(&self, req: OauthCallbackRequest) -> MoosyncResult<()> { ... }
}
Expand description

Trait for handling account-related events.

Provided Methods§

Source

fn get_accounts(&self) -> MoosyncResult<Vec<ExtensionAccountDetail>>

Called when the main app requests the list of accounts.

Source

fn perform_account_login( &self, req: PerformAccountLoginRequest, ) -> MoosyncResult<String>

Called when the main app requests to perform an account login.

Source

fn oauth_callback(&self, req: OauthCallbackRequest) -> MoosyncResult<()>

Called when the main app provides an OAuth callback code.

Implementors§