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