pub struct AdminUsersSession {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl AdminUsersSession
impl AdminUsersSession
Sourcepub async fn invalidate(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn invalidate(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.users.session.invalidate endpoint.
Invalidate a single session for a user by session_id
FROM: https://api.slack.com/methods/admin.users.session.invalidate
Parameters:
token: &str– Authentication token. Requires scope:admin.users:write.
Sourcepub async fn reset(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn reset(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.users.session.reset endpoint.
Wipes all valid sessions on all devices for a given user
FROM: https://api.slack.com/methods/admin.users.session.reset
Parameters:
token: &str– Authentication token. Requires scope:admin.users:write.
Auto Trait Implementations§
impl Freeze for AdminUsersSession
impl !RefUnwindSafe for AdminUsersSession
impl Send for AdminUsersSession
impl Sync for AdminUsersSession
impl Unpin for AdminUsersSession
impl !UnwindSafe for AdminUsersSession
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