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§
Sourcefn get_accounts(&self) -> MoosyncResult<Vec<ExtensionAccountDetail>>
fn get_accounts(&self) -> MoosyncResult<Vec<ExtensionAccountDetail>>
Called when the main app requests the list of accounts.
Sourcefn perform_account_login(
&self,
req: PerformAccountLoginRequest,
) -> MoosyncResult<String>
fn perform_account_login( &self, req: PerformAccountLoginRequest, ) -> MoosyncResult<String>
Called when the main app requests to perform an account login.
Sourcefn oauth_callback(&self, req: OauthCallbackRequest) -> MoosyncResult<()>
fn oauth_callback(&self, req: OauthCallbackRequest) -> MoosyncResult<()>
Called when the main app provides an OAuth callback code.