#[non_exhaustive]pub struct MessageSearchResults {
pub doing_deep_historical_index: bool,
pub documents_indexed: Option<u64>,
pub total_results: u64,
pub messages: Vec<Vec<Message>>,
pub threads: Vec<Channel>,
pub members: Vec<ThreadMember>,
}Expand description
The response of Search Guild Messages.
Messages come without their reactions. Do not paginate by the number of messages
returned: the search may return fewer than the limit.
discord.js counterpart: APIMessageSearchResult (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.doing_deep_historical_index: boolWhether the guild is going through a deep historical indexing.
documents_indexed: Option<u64>How many documents the current indexing has processed, if one is running.
total_results: u64How many messages match in total (may be inexact while messages are being created or deleted).
messages: Vec<Vec<Message>>The matching messages; each inner list holds one message (Discord used to add surrounding messages for context).
threads: Vec<Channel>The threads the messages are in.
members: Vec<ThreadMember>The current user’s thread member for each returned thread it has joined.
Trait Implementations§
Source§impl Clone for MessageSearchResults
impl Clone for MessageSearchResults
Source§impl Debug for MessageSearchResults
impl Debug for MessageSearchResults
Source§impl<'de> Deserialize<'de> for MessageSearchResults
impl<'de> Deserialize<'de> for MessageSearchResults
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MessageSearchResults
impl PartialEq for MessageSearchResults
Source§impl Serialize for MessageSearchResults
impl Serialize for MessageSearchResults
impl StructuralPartialEq for MessageSearchResults
Auto Trait Implementations§
impl Forget for MessageSearchResults
impl Freeze for MessageSearchResults
impl Move for MessageSearchResults
impl RefUnwindSafe for MessageSearchResults
impl Send for MessageSearchResults
impl Sync for MessageSearchResults
impl Unpin for MessageSearchResults
impl UnsafeUnpin for MessageSearchResults
impl UnwindSafe for MessageSearchResults
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