Skip to main content

switch_to

Function switch_to 

Source
pub(super) fn switch_to(
    state: &AppState,
    actor: &str,
    def_id: &str,
    to: &IdentityAccount,
    provider: &str,
    accounts: &[IdentityAccount],
    when: AccountSwitchWhen,
) -> Result<AgentAccountSwitchResult, SwitchError>
Expand description

Move the agent def_id to to (a signed-in account of provider; accounts are all of the provider’s, for the labels): at once, or queued while a pane of it is in a turn. Also the door for the account strip’s move of a whole episode (moves::move_agents).