pub struct AdminApps {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl AdminApps
impl AdminApps
Sourcepub async fn approve(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn approve(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.apps.approve endpoint.
Approve an app for installation on a workspace.
FROM: https://api.slack.com/methods/admin.apps.approve
Parameters:
token: &str– Authentication token. Requires scope:admin.apps:write.
Sourcepub async fn restrict(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn restrict(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.apps.restrict endpoint.
Restrict an app for installation on a workspace.
FROM: https://api.slack.com/methods/admin.apps.restrict
Parameters:
token: &str– Authentication token. Requires scope:admin.apps:write.
Auto Trait Implementations§
impl Freeze for AdminApps
impl !RefUnwindSafe for AdminApps
impl Send for AdminApps
impl Sync for AdminApps
impl Unpin for AdminApps
impl UnsafeUnpin for AdminApps
impl !UnwindSafe for AdminApps
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