pub struct Auth {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl Auth
impl Auth
Sourcepub async fn revoke(
&self,
test: bool,
) -> Result<Response<AuthRevokeSchema>, ClientError>
pub async fn revoke( &self, test: bool, ) -> Result<Response<AuthRevokeSchema>, ClientError>
This function performs a GET to the /auth.revoke endpoint.
Revokes a token.
FROM: https://api.slack.com/methods/auth.revoke
Parameters:
token: &str– Authentication token. Requires scope:none.test: bool– Setting this parameter to1triggers a testing mode where the specified token will not actually be revoked.
Sourcepub async fn test(&self) -> Result<Response<AuthTestSuccessSchema>, ClientError>
pub async fn test(&self) -> Result<Response<AuthTestSuccessSchema>, ClientError>
This function performs a GET to the /auth.test endpoint.
Checks authentication & identity.
FROM: https://api.slack.com/methods/auth.test
Parameters:
token: &str– Authentication token. Requires scope:none.
Auto Trait Implementations§
impl Freeze for Auth
impl !RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl !UnwindSafe for Auth
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