Struct rive_models::payload::FetchMessagesPayload
source · pub struct FetchMessagesPayload {
pub limit: Option<i64>,
pub before: Option<String>,
pub after: Option<String>,
pub sort: Option<MessageSort>,
pub nearby: Option<String>,
pub include_users: Option<bool>,
}Expand description
Query parameters
Fields§
§limit: Option<i64>Maximum number of messages to fetch
For fetching nearby messages, this is (limit + 1).
before: Option<String>Message id before which messages should be fetched
after: Option<String>Message id after which messages should be fetched
sort: Option<MessageSort>Message sort direction
nearby: Option<String>Message id to search around
Specifying ‘nearby’ ignores ‘before’, ‘after’ and ‘sort’. It will also take half of limit rounded as the limits to each side. It also fetches the message ID specified.
include_users: Option<bool>Whether to include user (and member, if server channel) objects
Trait Implementations§
source§impl Clone for FetchMessagesPayload
impl Clone for FetchMessagesPayload
source§fn clone(&self) -> FetchMessagesPayload
fn clone(&self) -> FetchMessagesPayload
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 Debug for FetchMessagesPayload
impl Debug for FetchMessagesPayload
source§impl Default for FetchMessagesPayload
impl Default for FetchMessagesPayload
source§fn default() -> FetchMessagesPayload
fn default() -> FetchMessagesPayload
Returns the “default value” for a type. Read more