pub struct MessageListParams<'a> {
pub room_id: &'a str,
pub parent_id: Option<&'a str>,
pub mentioned_people: &'a [&'a str],
pub before: Option<&'a str>,
pub before_message: Option<&'a str>,
pub max: Option<u32>,
}
Expand description
Parameters for listing messages
Fields§
§room_id: &'a str
List messages in a room, by ID.
parent_id: Option<&'a str>
List messages with a parent, by ID.
mentioned_people: &'a [&'a str]
List messages with these people mentioned, by ID. Use me as a shorthand for the current API user. Only me or the person ID of the current user may be specified. Bots must include this parameter to list messages in group rooms (spaces).
before: Option<&'a str>
List messages sent before a date and time.
before_message: Option<&'a str>
List messages sent before a message, by ID.
max: Option<u32>
Limit the maximum number of messages in the response. Default: 50
Implementations§
Trait Implementations§
Source§impl<'a> Clone for MessageListParams<'a>
impl<'a> Clone for MessageListParams<'a>
Source§fn clone(&self) -> MessageListParams<'a>
fn clone(&self) -> MessageListParams<'a>
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<'a> Debug for MessageListParams<'a>
impl<'a> Debug for MessageListParams<'a>
Source§impl<'a> PartialEq for MessageListParams<'a>
impl<'a> PartialEq for MessageListParams<'a>
Source§impl<'a> Serialize for MessageListParams<'a>
impl<'a> Serialize for MessageListParams<'a>
impl<'a> Eq for MessageListParams<'a>
impl<'a> StructuralPartialEq for MessageListParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessageListParams<'a>
impl<'a> RefUnwindSafe for MessageListParams<'a>
impl<'a> Send for MessageListParams<'a>
impl<'a> Sync for MessageListParams<'a>
impl<'a> Unpin for MessageListParams<'a>
impl<'a> UnwindSafe for MessageListParams<'a>
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.