Struct slack_chat_api::migration::Migration
source · pub struct Migration {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl Migration
impl Migration
sourcepub async fn exchange(
&self,
users: &str,
team_id: &str,
to_old: bool
) -> Result<MigrationExchangeSuccessSchema>
pub async fn exchange( &self, users: &str, team_id: &str, to_old: bool ) -> Result<MigrationExchangeSuccessSchema>
This function performs a GET to the /migration.exchange endpoint.
For Enterprise Grid workspaces, map local user IDs to global user IDs
FROM: https://api.slack.com/methods/migration.exchange
Parameters:
token: &str– Authentication token. Requires scope:tokens.basic.users: &str– A comma-separated list of user ids, up to 400 per request.team_id: &str– Specify team_id starts withTin case of Org Token.to_old: bool– Specifytrueto convertWglobal user IDs to workspace-specificUIDs. Defaults tofalse.