pub struct AppsPermissions {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl AppsPermissions
impl AppsPermissions
Sourcepub async fn info(
&self,
) -> Result<Response<AppsPermissionsInfoSchema>, ClientError>
pub async fn info( &self, ) -> Result<Response<AppsPermissionsInfoSchema>, ClientError>
This function performs a GET to the /apps.permissions.info endpoint.
Returns list of permissions this app has on a team.
FROM: https://api.slack.com/methods/apps.permissions.info
Parameters:
token: &str– Authentication token. Requires scope:none.
Sourcepub async fn request(
&self,
scopes: &str,
trigger_id: &str,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn request( &self, scopes: &str, trigger_id: &str, ) -> Result<Response<DndEndSchema>, ClientError>
This function performs a GET to the /apps.permissions.request endpoint.
Allows an app to request additional scopes
FROM: https://api.slack.com/methods/apps.permissions.request
Parameters:
token: &str– Authentication token. Requires scope:none.scopes: &str– A comma separated list of scopes to request for.trigger_id: &str– Token used to trigger the permissions API.
Auto Trait Implementations§
impl Freeze for AppsPermissions
impl !RefUnwindSafe for AppsPermissions
impl Send for AppsPermissions
impl Sync for AppsPermissions
impl Unpin for AppsPermissions
impl !UnwindSafe for AppsPermissions
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