moosync_edk::api

Trait Accounts

Source
pub trait Accounts {
    // Provided methods
    fn get_accounts(&self) -> MoosyncResult<Vec<ExtensionAccountDetail>> { ... }
    fn perform_account_login(
        &self,
        args: AccountLoginArgs,
    ) -> MoosyncResult<String> { ... }
    fn oauth_callback(&self, code: String) -> 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, args: AccountLoginArgs) -> MoosyncResult<String>

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

Source

fn oauth_callback(&self, code: String) -> MoosyncResult<()>

Called when the main app provides an OAuth callback code.

Implementors§