pub struct SlackApiConversationsHistoryResponse {
pub messages: Vec<SlackHistoryMessage>,
pub response_metadata: Option<SlackResponseMetadata>,
pub has_more: Option<bool>,
pub pin_count: Option<u64>,
}
Fields§
§messages: Vec<SlackHistoryMessage>
§response_metadata: Option<SlackResponseMetadata>
§has_more: Option<bool>
§pin_count: Option<u64>
Implementations§
Source§impl SlackApiConversationsHistoryResponse
impl SlackApiConversationsHistoryResponse
pub fn new(messages: Vec<SlackHistoryMessage>) -> Self
pub fn messages(&mut self, value: Vec<SlackHistoryMessage>) -> &mut Self
pub fn with_messages(self, value: Vec<SlackHistoryMessage>) -> Self
pub fn response_metadata(&mut self, value: SlackResponseMetadata) -> &mut Self
pub fn reset_response_metadata(&mut self) -> &mut Self
pub fn mopt_response_metadata( &mut self, value: Option<SlackResponseMetadata>, ) -> &mut Self
pub fn with_response_metadata(self, value: SlackResponseMetadata) -> Self
pub fn without_response_metadata(self) -> Self
pub fn opt_response_metadata(self, value: Option<SlackResponseMetadata>) -> Self
pub fn has_more(&mut self, value: bool) -> &mut Self
pub fn reset_has_more(&mut self) -> &mut Self
pub fn mopt_has_more(&mut self, value: Option<bool>) -> &mut Self
pub fn with_has_more(self, value: bool) -> Self
pub fn without_has_more(self) -> Self
pub fn opt_has_more(self, value: Option<bool>) -> Self
pub fn pin_count(&mut self, value: u64) -> &mut Self
pub fn reset_pin_count(&mut self) -> &mut Self
pub fn mopt_pin_count(&mut self, value: Option<u64>) -> &mut Self
pub fn with_pin_count(self, value: u64) -> Self
pub fn without_pin_count(self) -> Self
pub fn opt_pin_count(self, value: Option<u64>) -> Self
Trait Implementations§
Source§impl Clone for SlackApiConversationsHistoryResponse
impl Clone for SlackApiConversationsHistoryResponse
Source§fn clone(&self) -> SlackApiConversationsHistoryResponse
fn clone(&self) -> SlackApiConversationsHistoryResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for SlackApiConversationsHistoryResponse
impl<'de> Deserialize<'de> for SlackApiConversationsHistoryResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SlackApiConversationsHistoryResponseInit> for SlackApiConversationsHistoryResponse
impl From<SlackApiConversationsHistoryResponseInit> for SlackApiConversationsHistoryResponse
Source§fn from(value: SlackApiConversationsHistoryResponseInit) -> Self
fn from(value: SlackApiConversationsHistoryResponseInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackApiConversationsHistoryResponse
impl PartialEq for SlackApiConversationsHistoryResponse
Source§fn eq(&self, other: &SlackApiConversationsHistoryResponse) -> bool
fn eq(&self, other: &SlackApiConversationsHistoryResponse) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl SlackApiScrollableResponse for SlackApiConversationsHistoryResponse
impl SlackApiScrollableResponse for SlackApiConversationsHistoryResponse
type CursorType = SlackCursorId
type ResponseItemType = SlackHistoryMessage
fn next_cursor(&self) -> Option<&Self::CursorType>
fn scrollable_items<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::ResponseItemType> + 'a>
impl StructuralPartialEq for SlackApiConversationsHistoryResponse
Auto Trait Implementations§
impl Freeze for SlackApiConversationsHistoryResponse
impl RefUnwindSafe for SlackApiConversationsHistoryResponse
impl Send for SlackApiConversationsHistoryResponse
impl Sync for SlackApiConversationsHistoryResponse
impl Unpin for SlackApiConversationsHistoryResponse
impl UnwindSafe for SlackApiConversationsHistoryResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)