Struct rive_models::data::FetchMessagesData
source · pub struct FetchMessagesData {
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 FetchMessagesData
impl Clone for FetchMessagesData
source§fn clone(&self) -> FetchMessagesData
fn clone(&self) -> FetchMessagesData
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 FetchMessagesData
impl Debug for FetchMessagesData
source§impl Default for FetchMessagesData
impl Default for FetchMessagesData
source§fn default() -> FetchMessagesData
fn default() -> FetchMessagesData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FetchMessagesData
impl Send for FetchMessagesData
impl Sync for FetchMessagesData
impl Unpin for FetchMessagesData
impl UnwindSafe for FetchMessagesData
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