#[non_exhaustive]pub struct PinsAddRequest {
pub channel: String,
pub timestamp: Option<String>,
}Expand description
Arguments for the Slack Web API method pins.add: Pins an item to a channel.
Send it with SlackClient::pins_add.
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 to pin the messsage to. You must also include a timestamp when pinning messages.
timestamp: Option<String>Timestamp of the message to pin. You must also include the channel.
Implementations§
Trait Implementations§
Source§impl Clone for PinsAddRequest
impl Clone for PinsAddRequest
Source§impl Debug for PinsAddRequest
impl Debug for PinsAddRequest
Source§impl PartialEq for PinsAddRequest
impl PartialEq for PinsAddRequest
Source§impl Serialize for PinsAddRequest
impl Serialize for PinsAddRequest
Source§impl SlackApiMethod for PinsAddRequest
impl SlackApiMethod for PinsAddRequest
impl StructuralPartialEq for PinsAddRequest
Auto Trait Implementations§
impl Freeze for PinsAddRequest
impl RefUnwindSafe for PinsAddRequest
impl Send for PinsAddRequest
impl Sync for PinsAddRequest
impl Unpin for PinsAddRequest
impl UnsafeUnpin for PinsAddRequest
impl UnwindSafe for PinsAddRequest
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