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<Response<MigrationExchangeSuccessSchema>, ClientError>
pub async fn exchange( &self, users: &str, team_id: &str, to_old: bool, ) -> Result<Response<MigrationExchangeSuccessSchema>, ClientError>
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.
Auto Trait Implementations§
impl Freeze for Migration
impl !RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin for Migration
impl !UnwindSafe for Migration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more