Struct rive_models::payload::SearchForMessagesPayload
source · pub struct SearchForMessagesPayload {
pub query: String,
pub limit: Option<i64>,
pub before: Option<String>,
pub after: Option<String>,
pub sort: Option<MessageSort>,
pub include_users: Option<bool>,
}Expand description
Search Parameters
Fields§
§query: StringFull-text search query
See MongoDB documentation for more information.
limit: Option<i64>Maximum number of messages to fetch
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
By default, it will be sorted by relevance.
include_users: Option<bool>Whether to include user (and member, if server channel) objects
Trait Implementations§
source§impl Clone for SearchForMessagesPayload
impl Clone for SearchForMessagesPayload
source§fn clone(&self) -> SearchForMessagesPayload
fn clone(&self) -> SearchForMessagesPayload
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 SearchForMessagesPayload
impl Debug for SearchForMessagesPayload
source§impl Default for SearchForMessagesPayload
impl Default for SearchForMessagesPayload
source§fn default() -> SearchForMessagesPayload
fn default() -> SearchForMessagesPayload
Returns the “default value” for a type. Read more