pub struct AuthApi { /* private fields */ }Expand description
Auth API client
Implementations§
Source§impl AuthApi
impl AuthApi
Sourcepub async fn test(&self) -> Result<AuthTestResponse>
pub async fn test(&self) -> Result<AuthTestResponse>
Test authentication and get information about the authenticated user/bot
Sourcepub async fn revoke(&self, test: bool) -> Result<AuthRevokeResponse>
pub async fn revoke(&self, test: bool) -> Result<AuthRevokeResponse>
Sourcepub async fn teams_list(&self) -> Result<AuthTeamsListResponse>
pub async fn teams_list(&self) -> Result<AuthTeamsListResponse>
List teams the authenticated user has access to
Auto Trait Implementations§
impl Freeze for AuthApi
impl !RefUnwindSafe for AuthApi
impl Send for AuthApi
impl Sync for AuthApi
impl Unpin for AuthApi
impl !UnwindSafe for AuthApi
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