#[non_exhaustive]pub struct RtmConnectRequest {
pub batch_presence_aware: Option<bool>,
pub presence_sub: Option<bool>,
}Expand description
Arguments for the Slack Web API method rtm.connect: Starts a Real Time Messaging session.
Send it with SlackClient::rtm_connect.
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.batch_presence_aware: Option<bool>Batch presence deliveries via subscription. Enabling changes the shape of presence_change events. See batch presence.
presence_sub: Option<bool>Only deliver presence events when requested by subscription. See presence subscriptions.
Implementations§
Source§impl RtmConnectRequest
impl RtmConnectRequest
pub fn new() -> Self
pub fn batch_presence_aware(self, batch_presence_aware: bool) -> Self
pub fn presence_sub(self, presence_sub: bool) -> Self
Trait Implementations§
Source§impl Clone for RtmConnectRequest
impl Clone for RtmConnectRequest
Source§impl Debug for RtmConnectRequest
impl Debug for RtmConnectRequest
Source§impl Default for RtmConnectRequest
impl Default for RtmConnectRequest
Source§impl PartialEq for RtmConnectRequest
impl PartialEq for RtmConnectRequest
Source§impl Serialize for RtmConnectRequest
impl Serialize for RtmConnectRequest
Source§impl SlackApiMethod for RtmConnectRequest
impl SlackApiMethod for RtmConnectRequest
impl StructuralPartialEq for RtmConnectRequest
Auto Trait Implementations§
impl Freeze for RtmConnectRequest
impl RefUnwindSafe for RtmConnectRequest
impl Send for RtmConnectRequest
impl Sync for RtmConnectRequest
impl Unpin for RtmConnectRequest
impl UnsafeUnpin for RtmConnectRequest
impl UnwindSafe for RtmConnectRequest
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