pub struct GetMessagesQuery {
pub limit: Option<u8>,
pub before: Option<Snowflake>,
pub after: Option<Snowflake>,
pub around: Option<Snowflake>,
}Expand description
Query params for fetching messages. Only set one of before/after/around.
Fields§
§limit: Option<u8>1-100.
before: Option<Snowflake>§after: Option<Snowflake>§around: Option<Snowflake>Implementations§
Source§impl GetMessagesQuery
impl GetMessagesQuery
pub fn to_query_string(&self) -> String
Trait Implementations§
Source§impl Clone for GetMessagesQuery
impl Clone for GetMessagesQuery
Source§fn clone(&self) -> GetMessagesQuery
fn clone(&self) -> GetMessagesQuery
Returns a duplicate 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 GetMessagesQuery
impl Debug for GetMessagesQuery
Source§impl Default for GetMessagesQuery
impl Default for GetMessagesQuery
Source§fn default() -> GetMessagesQuery
fn default() -> GetMessagesQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetMessagesQuery
impl RefUnwindSafe for GetMessagesQuery
impl Send for GetMessagesQuery
impl Sync for GetMessagesQuery
impl Unpin for GetMessagesQuery
impl UnsafeUnpin for GetMessagesQuery
impl UnwindSafe for GetMessagesQuery
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