pub trait LinkedAccountsHost {
// Required methods
fn accounts(&self) -> Vec<LinkedAccount>;
fn revision(&self) -> u64;
fn refresh(&self);
fn link(&self, app: &str);
fn unlink(&self, app: &str);
// Provided methods
fn profile_links(&self) -> Option<Vec<ProfileLink>> { ... }
fn refresh_app(&self, app: &str) { ... }
fn offer(&self, token: &str) { ... }
fn accept(&self, app: &str) { ... }
fn decline(&self, app: &str) { ... }
}Expand description
What shows and changes a person’s linked accounts in a workspace. Asking
never waits: what comes of it shows in Self::accounts once the workspace’s
host answered, and Self::revision moves.
Required Methods§
Sourcefn accounts(&self) -> Vec<LinkedAccount>
fn accounts(&self) -> Vec<LinkedAccount>
Every service the workspace is connected to, with the person’s account, as last heard.
Sourcefn revision(&self) -> u64
fn revision(&self) -> u64
Moves whenever Self::accounts changed.
Provided Methods§
Sourcefn profile_links(&self) -> Option<Vec<ProfileLink>>
fn profile_links(&self) -> Option<Vec<ProfileLink>>
The person’s linked accounts as their profile names them; None
until the workspace’s host answered where they stand.
Sourcefn refresh_app(&self, app: &str)
fn refresh_app(&self, app: &str)
Ask again where the account with app’s service stands.