pub struct SearchMessagesQuery {
pub hits_per_page: Option<u8>,
pub page: Option<u32>,
pub content: Option<String>,
pub channel_id: Option<Vec<Snowflake>>,
pub author_id: Option<Vec<Snowflake>>,
pub has: Option<Vec<String>>,
pub pinned: Option<bool>,
pub sort_by: Option<String>,
pub sort_order: Option<String>,
pub scope: Option<String>,
}Expand description
Query payload for [Http::search_messages]. All fields are optional — set
only the filters you need. scope defaults to "current" server side.
Fields§
§hits_per_page: Option<u8>Results per page, 1–25.
page: Option<u32>§content: Option<String>Full-text content search.
channel_id: Option<Vec<Snowflake>>Restrict to these channel IDs.
Restrict to messages by these author IDs.
has: Option<Vec<String>>Filter by attachment/embed type: "image", "video", "file",
"sticker", "embed", "link", "poll".
pinned: Option<bool>§sort_by: Option<String>"timestamp" or "relevance".
sort_order: Option<String>"asc" or "desc".
scope: Option<String>"current", "open_dms", "all_dms", "all_guilds", or "all".
Trait Implementations§
Source§impl Clone for SearchMessagesQuery
impl Clone for SearchMessagesQuery
Source§fn clone(&self) -> SearchMessagesQuery
fn clone(&self) -> SearchMessagesQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SearchMessagesQuery
impl Debug for SearchMessagesQuery
Source§impl Default for SearchMessagesQuery
impl Default for SearchMessagesQuery
Source§fn default() -> SearchMessagesQuery
fn default() -> SearchMessagesQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchMessagesQuery
impl RefUnwindSafe for SearchMessagesQuery
impl Send for SearchMessagesQuery
impl Sync for SearchMessagesQuery
impl Unpin for SearchMessagesQuery
impl UnsafeUnpin for SearchMessagesQuery
impl UnwindSafe for SearchMessagesQuery
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