#[non_exhaustive]pub struct ConversationsInfoRequest {
pub channel: String,
pub include_locale: Option<bool>,
pub include_num_members: Option<bool>,
}Expand description
Arguments for the Slack Web API method conversations.info: Retrieve information about a conversation.
Send it with SlackClient::conversations_info.
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: StringConversation ID to learn more about
include_locale: Option<bool>Set this to true to receive the locale for this conversation. Defaults to false
include_num_members: Option<bool>Set to true to include the member count for the specified conversation. Defaults to false
Implementations§
Source§impl ConversationsInfoRequest
impl ConversationsInfoRequest
pub fn new(channel: impl Into<String>) -> Self
pub fn include_locale(self, include_locale: bool) -> Self
pub fn include_num_members(self, include_num_members: bool) -> Self
Trait Implementations§
Source§impl Clone for ConversationsInfoRequest
impl Clone for ConversationsInfoRequest
Source§impl Debug for ConversationsInfoRequest
impl Debug for ConversationsInfoRequest
Source§impl PartialEq for ConversationsInfoRequest
impl PartialEq for ConversationsInfoRequest
Source§impl Serialize for ConversationsInfoRequest
impl Serialize for ConversationsInfoRequest
impl StructuralPartialEq for ConversationsInfoRequest
Auto Trait Implementations§
impl Freeze for ConversationsInfoRequest
impl RefUnwindSafe for ConversationsInfoRequest
impl Send for ConversationsInfoRequest
impl Sync for ConversationsInfoRequest
impl Unpin for ConversationsInfoRequest
impl UnsafeUnpin for ConversationsInfoRequest
impl UnwindSafe for ConversationsInfoRequest
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