pub enum ApiMethod {
SearchMessages,
ConversationsList,
ConversationsHistory,
UsersInfo,
UsersList,
ChatPostMessage,
ChatUpdate,
ChatDelete,
ReactionsAdd,
ReactionsRemove,
}Expand description
Slack API method identifier
Variants§
SearchMessages
Search messages
ConversationsList
List conversations
ConversationsHistory
Get conversation history
UsersInfo
Get user info
UsersList
List users
ChatPostMessage
Post message
ChatUpdate
Update message
ChatDelete
Delete message
ReactionsAdd
Add reaction
ReactionsRemove
Remove reaction
Implementations§
Source§impl ApiMethod
impl ApiMethod
Sourcepub fn uses_get_method(&self) -> bool
pub fn uses_get_method(&self) -> bool
Check if this method requires GET request
Sourcepub fn is_destructive(&self) -> bool
pub fn is_destructive(&self) -> bool
Check if this is a destructive operation requiring confirmation
Trait Implementations§
impl StructuralPartialEq for ApiMethod
Auto Trait Implementations§
impl Freeze for ApiMethod
impl RefUnwindSafe for ApiMethod
impl Send for ApiMethod
impl Sync for ApiMethod
impl Unpin for ApiMethod
impl UnwindSafe for ApiMethod
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