pub struct AdminTeams {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl AdminTeams
impl AdminTeams
Sourcepub async fn create(&self) -> Result<Response<DndEndSchema>, ClientError>
pub async fn create(&self) -> Result<Response<DndEndSchema>, ClientError>
This function performs a POST to the /admin.teams.create endpoint.
Create an Enterprise team.
FROM: https://api.slack.com/methods/admin.teams.create
Parameters:
token: &str– Authentication token. Requires scope:admin.teams:write.
Sourcepub async fn list(
&self,
limit: i64,
cursor: &str,
) -> Result<Response<DndEndSchema>, ClientError>
pub async fn list( &self, limit: i64, cursor: &str, ) -> Result<Response<DndEndSchema>, ClientError>
This function performs a GET to the /admin.teams.list endpoint.
List all teams on an Enterprise organization
FROM: https://api.slack.com/methods/admin.teams.list
Parameters:
token: &str– Authentication token. Requires scope:admin.teams:read.limit: i64– The maximum number of items to return. Must be between 1 - 100 both inclusive.cursor: &str– Setcursortonext_cursorreturned by the previous call to list items in the next page.
Auto Trait Implementations§
impl Freeze for AdminTeams
impl !RefUnwindSafe for AdminTeams
impl Send for AdminTeams
impl Sync for AdminTeams
impl Unpin for AdminTeams
impl !UnwindSafe for AdminTeams
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