#[non_exhaustive]pub struct ChatDeleteRequest {
pub channel: String,
pub ts: String,
pub as_user: Option<bool>,
}Expand description
Arguments for the Slack Web API method chat.delete: Deletes a message.
Send it with SlackClient::chat_delete.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.channel: StringChannel containing the message to be deleted.
ts: StringTimestamp of the message to be deleted.
as_user: Option<bool>(Legacy) Pass true to delete the message as the authed user with chat:write:user scope. Bot users in this context are considered authed users. See legacy as_user parameter below.
Implementations§
Trait Implementations§
Source§impl Clone for ChatDeleteRequest
impl Clone for ChatDeleteRequest
Source§impl Debug for ChatDeleteRequest
impl Debug for ChatDeleteRequest
Source§impl PartialEq for ChatDeleteRequest
impl PartialEq for ChatDeleteRequest
Source§impl Serialize for ChatDeleteRequest
impl Serialize for ChatDeleteRequest
Source§impl SlackApiMethod for ChatDeleteRequest
impl SlackApiMethod for ChatDeleteRequest
impl StructuralPartialEq for ChatDeleteRequest
Auto Trait Implementations§
impl Freeze for ChatDeleteRequest
impl RefUnwindSafe for ChatDeleteRequest
impl Send for ChatDeleteRequest
impl Sync for ChatDeleteRequest
impl Unpin for ChatDeleteRequest
impl UnsafeUnpin for ChatDeleteRequest
impl UnwindSafe for ChatDeleteRequest
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